Jump to content

What is wrong..


Lamez

Recommended Posts

I hate using the update function, what am I doing wrong here?

 

	$q = "UPDATE `points` SET 1=$a, SET 2=$b, SET 3=$c, SET 4=$d, SET 5=$e, SET 6=$f WHERE id=$id";

mysql_query($q)or die(mysql_error());

 

I get this error:

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 '1=0, SET 2=0, SET 3=0, SET 4=0, SET 5=0, SET 6=0 WHERE id=1' at line 1

 

 

Link to comment
https://forums.phpfreaks.com/topic/92806-what-is-wrong/
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.