You are here: Adding "'s to a $_POST value? « PHP Language « IT news, forums, messages
Adding "'s to a $_POST value?

Posted by Ant on 08/12/05 18:41

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.

 

Navigation:

[Reply to this 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

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