PHP code to change a signature - 03/29/2005 7:22 AM
I need a php code to do the equivilent of this SQL command:
update w3t_Users set U_Signature = "<img src=http://www.myboard.com/ubbthreads/uploads/picture.jpg>" where U_Username = "troublemaker"
This works! Now when I try to convert that to PHP, phpmyadmin gives me the php equivilent of
$sql = 'update w3t_Users set U_Signature = "<img src=http://www.myboard.com/ubbthreads/uploads/picture.jpg>" where U_Username = "troublemaker"';
Which gives me a parse error. I tried replacing $sql with $query, same problem.
update w3t_Users set U_Signature = "<img src=http://www.myboard.com/ubbthreads/uploads/picture.jpg>" where U_Username = "troublemaker"
This works! Now when I try to convert that to PHP, phpmyadmin gives me the php equivilent of
$sql = 'update w3t_Users set U_Signature = "<img src=http://www.myboard.com/ubbthreads/uploads/picture.jpg>" where U_Username = "troublemaker"';
Which gives me a parse error. I tried replacing $sql with $query, same problem.