Onbekend |
|
Ik ben nu al een uur bezig om mn fout eruit te krijgen, zonder resultaat.
Hoop dat iemand me uit de brand kan helpen.
Dit is de error:
Citaat: 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 ' name=Sander, dateofbirth=1900-01-01, city=Uithoorn, email=
Ik heb het even overzichtelijk uitgeschreven, maar ik zie geen fouten..
<?
$password = addslashes($_POST['password']);
$name = addslashes($_POST['name']);
$dateofbirth = addslashes($_POST['dateofbirth']);
$city = addslashes($_POST['city']);
$email = addslashes($_POST['email']);
$website = addslashes($_POST['website']);
$msn = addslashes($_POST['msn']);
$hobbies = addslashes($_POST['hobbies']);
$favteam = addslashes($_POST['favteam']);
$favplayer = addslashes($_POST['favplayer']);
$favmusic = addslashes($_POST['favmusic']);
$favmovie = addslashes($_POST['favmovie']);
$favdrink = addslashes($_POST['favdrink']);
$favfood = addslashes($_POST['favfood']);
$favgirl = addslashes($_POST['favgirl']);
$monitor = addslashes($_POST['monitor']);
$motherboard = addslashes($_POST['motherboard']);
$cpu = addslashes($_POST['cpu']);
$ram = addslashes($_POST['ram']);
$harddisk = addslashes($_POST['harddisk']);
$videocard = addslashes($_POST['videocard']);
$soundcard = addslashes($_POST['soundcard']);
$headset = addslashes($_POST['headset']);
$mouse = addslashes($_POST['mouse']);
$mousepad = addslashes($_POST['mousepad']);
$keyboard = addslashes($_POST['keyboard']);
$extrainfo = addslashes($_POST['extrainfo']);
mysql_query("UPDATE members SET
name='".$name."',
dateofbirth='".$dateofbirth."',
city='".$city."',
email='".$email."',
website='".$website."',
msn='".$msn."',
hobbies='".$hobbies."',
favteam='".$favteam."',
favplayer='".$favplayer."',
favmusic='".$favmusic."',
favmovie='".$favmovie."',
favdrink='".$favdrink."',
favfood='".$favfood."',
favgirl='".$favgirl."',
monitor='".$monitor."',
motherboard='".$motherboard."',
cpu='".$cpu."',
ram='".$ram."',
harddisk='".$harddisk."',
videocard='".$videocard."',
soundcard='".$soundcard."',
headset='".$headset."',
mouse='".$mouse."',
mousepad='".$mousepad."',
keyboard='".$keyboard."',
extrainfo='".$extrainfo."' WHERE id=".$_GET['memberid']) or die (mysql_error());
?>
<? name='".$name."', dateofbirth='".$dateofbirth."', city='".$city."', email='".$email."', website='".$website."', msn='".$msn."', hobbies='".$hobbies."', favteam='".$favteam."', favplayer='".$favplayer."', favmusic='".$favmusic."', favmovie='".$favmovie."', favdrink='".$favdrink."', favfood='".$favfood."', favgirl='".$favgirl."', monitor='".$monitor."', motherboard='".$motherboard."', cpu='".$cpu."', ram='".$ram."', harddisk='".$harddisk."', videocard='".$videocard."', soundcard='".$soundcard."', headset='".$headset."', mouse='".$mouse."', mousepad='".$mousepad."', keyboard='".$keyboard."', extrainfo='".$extrainfo."' WHERE id=".$_GET['memberid']) or die (mysql_error()); ?>
edit:
WHERE id='".$_GET['memberid']."'") or die (mysql_error());
WHERE id='".$_GET['memberid']."'") or die (mysql_error());
Hier zat de fout, zelfde als de andere vars gedaan. Alleen word er niks geupdate, ik krijg Citaat: Your profile has been edited.
thats it.
|