Jump to content

mysql_query UPDATE not updating


Foser

Recommended Posts

if (isset($_POST['submit'])) {

if (isset($_POST['username_check'])){
mysql_query("UPDATE user_info SET username = {$_POST[username]} WHERE username = {$username}");
}}

 

for some reason it does not update. the statement gets passed but it never updates. I have put in an echo in each if statement to test if they get passed and they do. they just dont update.

Link to comment
https://forums.phpfreaks.com/topic/58697-mysql_query-update-not-updating/
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.