note 52621 deleted from function.addslashes by philip

From: Date: Fri, 31 Mar 2006 15:25:34 +0000
Subject: note 52621 deleted from function.addslashes by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-107077@lists.php.net to get a copy of this message
Note Submitter: yet another user ---- @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

« previous php.notes (#107077) next »