Posted by Norman Peelman on 08/13/05 04:21
"Ant" <nospam@allthanks.com> wrote in message
news:ddifv0$1ip$1@wisteria.csv.warwick.ac.uk...
> Hi,
>
> 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.
>
>
Let us know how you worked it out as someone might have even a better
way...
Norm
---
FREE Avatar hosting at www.easyavatar.com
[Back to original message]
|