note 52621 added to function.addslashes
| From: | yetanotheruser at osu1 dot php dot net | Date: | Sat, 07 May 2005 08:26:12 +0000 |
| Subject: | note 52621 added to function.addslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89065@lists.php.net to get a copy of this message | ||
@unsafed: well it worked great for me adding records to my "storyDB":
$stTitle = addslashes($wholestory[$storyid][titel]);
$stInhalt = addslashes($wholestory[$storyid][inhalt]);
$aktueller_eintrag = "INSERT INTO $dbTable (titel, inhalt) VALUES ('$stTitle',
'$stInhalt');";
$eintragInDB = mysql_query($aktueller_eintrag);
withot function addslashes i had problems with chars like the single quotes, and the query
didn't work.
but with this function everything worked fine...
greetz
----
Manual Page -- http://www.php.net/manual/en/function.addslashes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52621
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52621&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52621&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52621&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52621&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52621&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52621&report=yes
Search -- http://master.php.net/manage/user-notes.php