[erledigt] ' Problem
Verfasst: 24.09.2004 21:49
Wie kann ich das ' umwandeln? Weil ich kann ja nicht einfach ' in Namen verbietenSQL 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 's Wolves' WHERE user_id='279'' at line 1
UPDATE phpbb_users SET user_xyz = 'Pandora's Wolves' WHERE user_id='0'
Line : 428
File : /srv/www/htdocs/web2/html/test.php

EDIT:
$var_new = str_replace("'" , "\'", $var);
Das war die lösung

MfG
Dave