Re: Re: php can't insert data mysql table

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

 



On 10/1/2012 9:12 AM, Tommy Pham wrote:
On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx> wrote:

In this case, I do think that your insert statement is incorrect - I could
be wrong.  I think the VALUES clause s/b just 'VALUE'.  Also if you added
MYSQLI_ERROR to your error handling you should get a very helpful message.


VALUES also work.  See http://dev.mysql.com/doc/refman/5.5/en/insert.html

Yeah - I just saw it in one of my scripts.

So - adding the error handling and the call to mysqli_error should help the OP diagnose his problem.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux