Re: Question
| From: | Remember14a at aol dot com | Date: | Sat, 07 Feb 2004 20:02:22 +0000 |
| Subject: | Re: Question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32840@lists.php.net to get a copy of this message | ||
Dear friend,
I changed
$_POST['testField']
instead of
$_post[testField]
Before it was returning parse error now it doesnt return any error nor writes
to mysql database, however I used following sql staatement which wrote to
database before
// create the SQL statement
$sql = "INSERT INTO testTable values ('', '$_POST[testField]')";
Now I have added more columns to database and form and made similar changes
in the php script, now it doesnt write with this sql statement to database
// create the SQL statement
$sql = "INSERT INTO testtable values ('{$_POST[testField]}','
{$_POST[testFielda]}','{$_POST[testFieldb]}','{$_POST[testFieldd]}','
{$_POST[testFieldc]}','{$_POST[testFielde]}')";
Any advice, please.
Asif