Reply to Re: Adding "'s to a $_POST value?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация