Jump to content

Archived

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

leeming

mysql_query() returning false on INSERT query... confused :-s

Recommended Posts

This does not work at all...

when ran, it doesnt show an mysql_error(), so i dont know where im going wrong...
for any one who wants to know what the query prints out..

[quote]Error: Can not add user to new wait attacks! #F-1-002 ::debug:: ::query = INSERT INTO `users` (user_id) VALUES ('12')[/quote]

[code]     
$newAttSql = "INSERT INTO `users` (user_id) VALUES ('$user')";
      $newAtt = mysql_query($newAttSql,$dbh) or die('Error: Can not add user to new wait attacks! #F-1-002 ::debug::'.mysql_error().' ::query = '.$newAttSql);
[/code]

Share this post


Link to post
Share on other sites
soory just another one where i totaly over look the small things, lol... sorry a lil tired... i had but the wrong table name... sorry

Share this post


Link to post
Share on other sites

×

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.