Re: Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux