Jump to content

mysql error


zgkhoo

Recommended Posts

Error msg occur:

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 '}' WHERE Serialnum = 'ZZZ0041'' at line 1

 

 

mysql_query("UPDATE gamecard SET `Ownerid`= '$login',Upline='{$row2['Serialnum']}'}' WHERE Serialnum = '$row[serialnum]'") or die(mysql_error());
mysql_query("UPDATE gamecard SET Downleft='{$row['Serialnum']}' WHERE Serialnum = '$row2[serialnum]'") or die(mysql_error());

 

where is the error????? ???

Link to comment
https://forums.phpfreaks.com/topic/76056-mysql-error/
Share on other sites

Try this

 

<?php

mysql_query("UPDATE gamecard SET `Ownerid`= '$login',Upline='{$row2['Serialnum']}' 
WHERE Serialnum = '{$row['Serialnum']}'") or die(mysql_error());

mysql_query("UPDATE gamecard SET Downleft='{$row['Serialnum']}' WHERE Serialnum = '{$row2['Serialnum']}'") 
or die(mysql_error());

?>

Link to comment
https://forums.phpfreaks.com/topic/76056-mysql-error/#findComment-385047
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.