Jump to content

Help with MySQL statement....


Worqy

Recommended Posts

I have a problem..

I get an error with this SQL statement..

$PassSQL = ("UPDATE admin WHERE Username=Admin SET Password=123415");
$NewPass=mysql_query($PassSQL);

 

I get the 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 'WHERE Username=Admin SET Password=123415' at line 1

 

If I use the code

UPDATE admin SET Password=123415");
$NewPass=mysql_query($PassSQL);

I don't get any error..

 

 

Link to comment
https://forums.phpfreaks.com/topic/206374-help-with-mysql-statement/
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.