[Solved] Form method get not working [closed]


You have problem in won.php at this line

$res=mysql_query("SELECT * FROM users WHERE user_id=".$_SESSION['user']);

You have $_SESSION['user'] as string.. This must be integer OR you must add quotes:

$res=mysql_query("SELECT * FROM users WHERE user_id='".$_SESSION['user']."'");

Or define $_SESSION["user"] as integer by adding (int) after = where you define it.

UPDATE

Problem solved with teamviewer. User got blank variable $wonorlose because he make AJAX POST without parameters. I changet AJAX POST into AJAX GET with parameter wonorlose and now its working. Final code have only author.

0

solved Form method get not working [closed]