Jump to content

query


Sooth

Recommended Posts

What's wrong with this script. It doesn't update as required. :-[

include "config.php";
mysql_connect($db_hostname,$db_username,$db_password);
@mysql_select_db($db_database)or die("<p>Unable to select database.</p>");
$query="UPDATE users SET email='$_POST[update_email]', firstname='$_POST[update_firstname]', lastname='$_POST[update_lastname]', birthday='$_POST[update_birthday]', birthmonth='$_POST[update_birthmonth]', birthyear='$_POST[update_birthyear]', genre='$_POST[update_genre]', nationality='$_POST[update_nationality]', config='$_POST[update_config]' WHERE username='$_SESSION[username]'";
mysql_query($query);
mysql_close();

Link to comment
https://forums.phpfreaks.com/topic/67033-query/
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.