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.)
[Back to original message]
|