Jump to content

Eyes needed for sql query not working


snowdog

Recommended Posts

My eyes just don't see it. I am sure it is simple and stupid. Here is the code and error

 

$query_check = "select * from spares where level = '$level', skill = '$skill', date = '$date', time = '$game_time', team = '$team_name', position = '$position', player_id = '$player_id'";
$result_check = mysql_query($query_check) or die('Query failed: ' . mysql_error());

 

Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' skill = 'b', date = '2013-02-24', time = '8:30', team = '8', position = 'f', pl' at line 1

 

Thanks

 

Snowdog

Link to comment
https://forums.phpfreaks.com/topic/274250-eyes-needed-for-sql-query-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.