What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP and MySQL noob

2 votes - 3 average   PHP and MySQL noob
Author: Message:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: PHP and MySQL noob
quote:
Originally posted by Ezra
But when I show this on a page things with a ' in them show like this: \'things\'
Oh, sorry... the addslashes() function should always be used on user-inputted data before it's placed in a query, just in case your copy of PHP isn't configured to add slashes automatically. I guess they are added automatically for you. What you could do is change that line of code above to...

if(!get_magic_quotes_gpc()) $_POST['inhoud'] = addslashes($_POST['inhoud']);

Then you won't need stripslashes.
01-23-2005 05:25 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP and MySQL noob - by Ezra on 01-22-2005 at 07:47 PM
RE: PHP and MySQL noob - by RaceProUK on 01-22-2005 at 08:49 PM
RE: PHP and MySQL noob - by Dempsey on 01-22-2005 at 09:14 PM
RE: PHP and MySQL noob - by Ezra on 01-22-2005 at 09:19 PM
RE: PHP and MySQL noob - by saralk on 01-22-2005 at 09:36 PM
RE: PHP and MySQL noob - by WDZ on 01-23-2005 at 12:44 AM
RE: PHP and MySQL noob - by Ezra on 01-23-2005 at 12:59 AM
RE: PHP and MySQL noob - by WDZ on 01-23-2005 at 01:11 AM
RE: PHP and MySQL noob - by Ezra on 01-23-2005 at 01:33 AM
RE: PHP and MySQL noob - by WDZ on 01-23-2005 at 05:25 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On