List Info

Thread: note 52621 deleted from function.addslashes by philip




note 52621 deleted from function.addslashes by philip
user name
2006-03-31 15:25:34
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

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )