Adding "'s to a $_POST value

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm a bit of a newbie to php.

I have some values that I'm getting via the post method which I want to
include in an sql statement - the problem is I need to enclose the value in
"'s but I dont know how.

e.g $id = $_POST["id"];

so, if $id = monkey I want to turn it into "monkey"

Any help much appreciated - I'm sure it's something obvious and I'm just
being thick.

Re: Adding "'s to a $_POST value

no more replies please, I've worked it out...

thanks though
Quoted text here. Click to load it

Site Timeline