Jump to content

mysql update query


Stooney

Recommended Posts

well those are generally variables, that line was the result of my printing the query.  so pre-print:

 

	$update="UPDATE `stauctioneer_tableitems` SET `itemnum`='$slot[$k]' WHERE `table` = '$tableid' AND `slot`='$k'"; 

 

Remove the single quotes around the variables.

Link to comment
https://forums.phpfreaks.com/topic/80751-mysql-update-query/#findComment-409609
Share on other sites

Syntax looks right, what error do you get?

 

If its just not updating, make sure you are in fact sending the right type of data for that column.  If they are all set to Integer, make sure your variables are not Strings.

 

Put a error check after the query to see if you have a error in your statement.

Link to comment
https://forums.phpfreaks.com/topic/80751-mysql-update-query/#findComment-409716
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.