Re: Re: php can't insert data mysql table
| From: | Jim Giner | Date: | Mon, 01 Oct 2012 13:14:05 +0000 |
| Subject: | Re: Re: php can't insert data mysql table | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319311@lists.php.net to get a copy of this message | ||
On 10/1/2012 9:12 AM, Tommy Pham wrote:
On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner <jim.giner@albanyhandball.com> wrote:So - adding the error handling and the call to mysqli_error should help the OP diagnose his problem.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.