You are here: Re: PHP insert « PHP Programming Language « IT news, forums, messages
Re: PHP insert

Posted by Petr Vileta on 10/21/06 02:24

"Bonzol" <Bonzol@hotmail.com> píse v diskusním príspevku
news:1161366905.830555.89540@m73g2000cwd.googlegroups.com...
> Hello, PHP n00b here.
>
> <?php $query = "Insert into tbl_category (cat_description) Values
> ('%{$_REQUEST['name']}%')";

Problem is that you use single quoutes twice ;-) Try this

$name = $_REQUEST['name'];
$query = "Insert into tbl_category (cat_description) Values ('%{$name}%')";

--

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)

 

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

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