- Joined
- Jul 1, 2007
- Messages
- 367
- Reaction score
- 1
I'm not sure but I think it's the query. MySQL is connected all fine, it just wont add this data to the database.
Thanks in advance for your help
PHP:
$input = $_GET['x'];
settype($input, "integer");
if ($input == 1)
{
mysql_query("INSERT INTO `scores` (option) VALUES ('good')");
out();
}
elseif ($input == 2)
{
mysql_query("INSERT INTO `scores` (option) VALUES ('bad')");
out();
}
else
{
out();
}
Thanks in advance for your help

