Jump to content


Photo

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


  • Please log in to reply
2 replies to this topic

#1 leeming

leeming
  • Members
  • PipPipPip
  • Advanced Member
  • 93 posts

Posted 19 July 2006 - 03:30 AM

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..

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


      
$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);

Im not perfect ;) lol

#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 19 July 2006 - 03:34 AM

please post more then that cheers.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#3 leeming

leeming
  • Members
  • PipPipPip
  • Advanced Member
  • 93 posts

Posted 19 July 2006 - 03:35 AM

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
Im not perfect ;) lol




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users