parse error on an SQL variable set.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jidospod
Forum Commoner
Posts: 33
Joined: Tue Jun 11, 2002 1:05 am

parse error on an SQL variable set.

Post by jidospod »

Im trying to update some values in a current sql database, I am setting this for the sql call, but Im getting a parse error back and for the life of me cannot find it, Im sure its something simple I've overlooked. Any feedback would be greatly appreciated. Thanks.

Code: Select all

$sql="UPDATE users set emailaddr='". $emailaddr ."', password='". md5($password) ."', sec_question='". $sec_question ."', sec_answer='". $sec_answer ."', location='". $location ."',hobbies='". $hobbies ."',website='". $website ."' where username='". $username ."'");
jidospod
Forum Commoner
Posts: 33
Joined: Tue Jun 11, 2002 1:05 am

Post by jidospod »

answered my own question heh
Post Reply