Jump to content


This topic is now archived and is closed to further replies.


error maybe its not sending to the db

Recommended Posts

$query = mysql_query("SELECT * from profile where username = '$_GET[user]'") or die(mysql_error);
$profile = mysql_fetch_array($query);
$aim = $_POST[aim];
$msn = $_POST[msn];
$yim = $_POST[yim];
$website = $_POST[website];
$gender = $_POST[gender];
$age = $_POST[age];
$location = $_POST[location];
echo("You have left a spot empty!");
$query = mysql_query("UPDATE profile SET (aim = '$aim',msn = '$msn',yim = '$yim',website = '$website',gender = '$gender',age = '$age',location = '$location') WHERE username = '$logged[username]'");

i try to use this but it does't work can u help me?

Share this post

Link to post
Share on other sites
Change the bitwise operator | to the logical or operator of || in your "if" statement. See:


Take out the left and right parenthesis in the UPDATE. See:


Share this post

Link to post
Share on other sites


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.