Code: Alles auswählen
$sql = "UPDATE ".NICKPAGE_TABLE." AS a, ".USERS_TABLE." AS b, SET
a.name='".safeHTML($HTTP_POST_VARS['name'])."',
a.born='".$HTTP_POST_VARS['tag'].".".$HTTP_POST_VARS['monat'].".".$HTTP_POST_VARS['jahr']."',
a.specialnick='".safeHTML($HTTP_POST_VARS['specialnick'])."',
a.info='".safeHTML($HTTP_POST_VARS['info'])."',
a.groesse='".safeHTML($HTTP_POST_VARS['groesse'])."',
a.haar='".safeHTML($HTTP_POST_VARS['haar'])."',
a.augen='".safeHTML($HTTP_POST_VARS['augen'])."',
a.familienstand='".safeHTML($HTTP_POST_VARS['familienstand'])."',
a.traumfrau='".safeHTML($HTTP_POST_VARS['frau'])."',
a.musik='".safeHTML($HTTP_POST_VARS['musik'])."',
a.auto='".safeHTML($HTTP_POST_VARS['auto'])."',
a.essen='".safeHTML($HTTP_POST_VARS['essen'])."',
a.film='".safeHTML($HTTP_POST_VARS['film'])."',
a.motto='".safeHTML($HTTP_POST_VARS['motto'])."',
a.beruf='".safeHTML($HTTP_POST_VARS['beruf'])."',
a.aktuell='".safeHTML($HTTP_POST_VARS['aktuell'])."',
a.mitgliedschaften='".safeHTML($HTTP_POST_VARS['mitgliedschaften'])."'
b.user_birthday = '$birthday'
WHERE a.uid='".$uid."' AND b.user_id = $uid";
Der fehler der kommt ist übrigens:
Konnte Allgemeine Einstellungen nicht speichern!
DEBUG MODE
SQL Error : 1064 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 'SET a.name='Sebastian Rösner',
UPDATE deig_nickpagemod AS a, deig_users AS b, SET a.name='Sebastian Rösner', a.born='20.12.1980', a.specialnick='', a.info='Wiedersprich nie einer Frau, sondern warte bis sie es selber tut....', a.groesse='186 cm', a.haar='dunkelblond', a.augen='blau-grau', a.familienstand='', a.traumfrau='', a.musik='alles mögliche', a.auto='Passat', a.essen='PMCW', a.film='Taxi', a.motto='Was nicht passt, wird passend gemacht....', a.beruf='Student', a.aktuell='', a.mitgliedschaften='Kloster Jungschützen Epe' b.user_birthday = '4006' WHERE a.uid='2' AND b.user_id = 2
Line : 193
File : /home/d/deig.net/public_html/nickpage_admin.php