Search found 3 matches

by Vinzie
Tue Nov 26, 2002 9:05 am
Forum: PHP - Code
Topic: Can't put a ' in my guest book
Replies: 5
Views: 1274

I added the line

Code: Select all

$bericht = addslashes($bericht);
And now its working...

Tnx...
by Vinzie
Tue Nov 26, 2002 9:00 am
Forum: PHP - Code
Topic: Can't put a ' in my guest book
Replies: 5
Views: 1274

I now use the htmlspectialchars...
that should also do the trick right...

But it doesn't for me...

Code: Select all

$bericht = htmlspecialchars($bericht); 
$bericht = nl2br($bericht);
But I still get errors using ' in my message...

What can it be. ??

Greetz Frank
by Vinzie
Tue Nov 26, 2002 8:11 am
Forum: PHP - Code
Topic: Can't put a ' in my guest book
Replies: 5
Views: 1274

Can't put a ' in my guest book

I've managed to make a guest book, from all the material on the internet... but when someone put a ' in there message and click submit they get an error...for example: You have an error in your SQL syntax near '15:11','26/11/2002')' at line 1 when I only put an ' in the message space... How can I ma...