1) I'm making a gaming league and i would like people to report games when they have won.
I know how to make a HTML form but then when i send the info to a php script how do i turn the information into variables so i can use then further down in the script.
2) My second problem is that when people report a game i would like 5 points to be added to the points but i cant do it. I dont get an error but the script just doesnt work.. This is my script.
$name = "Ph0enix"; $db = mysql_connect("HOST", "USERNAME" , "PASSWORD"); mysql_select_db('DBNAME'); mysql_query("UPDATE points SET points = points + 5 WHERE user_name= $name");
Can anyone please tell me what im doing wrong and help me!