I have a little snippet of code - seems like it should be so easy - to add items to a table. When I run the code the first time, it works perfectly, but then if I try it a second time - nothing is added to the table.
Here's the code:
Code: Select all
$addBidQuery = ("INSERT INTO bids_tb(bidNum, userID, itemNum, bid) VALUES('$bidNum','".$_SESSIONї'userID']."','$itemNum','$bid')") OR DIE(mysql_error());
$addBidResult = mysql_query($addBidQuery);I can't figure out what the heck is going on! I've never had this problem before.INSERT INTO bids_tb(bidNum, userID, itemNum, bid) VALUES('27134838192738839842','54','3','1000.00')
Can anyone give me any suggestions as to how to resolve it?
Thanks!