RE: [PHP] i'm beginner and i couldn't solve the problem
| From: | Ford, Mike | Date: | Wed, 08 Dec 2004 13:18:08 +0000 |
| Subject: | RE: [PHP] i'm beginner and i couldn't solve the problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-203723@lists.php.net to get a copy of this message | ||
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
On 08 December 2004 11:29, Sagar C Nannapaneni wrote:
> $sql = "INSERT INTO testTable values ('', '$_POST[testField]')";
>
> should be
>
> $var = $_POST["testField"];
> $sql = "INSERT INTO testTable values ('', '$var')";
Nope -- the original is functionally identical to your suggested correction.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211