>
> I think the comment about your "cannot insert query" was because it really
> did not make sense. Once truly cannot "insert a query". Since you ask
> tho, a more approp message might be
> "Insert query failed to execute.Error returned was " . mysqli_error()
> . "Query was $q"
>
> As for your i
On 10/1/2012 12:20 PM, Tim Dunphy wrote:
hey thanks guys adding debugging info worked.
Actually it was mysqli_error() providing me with a specific error of where
the problem was.
Cannot insert query:Duplicate entry '0' for key 'PRIMARY'
This is the data in the table
mysql> select * from guita
hey thanks guys adding debugging info worked.
Actually it was mysqli_error() providing me with a specific error of where
the problem was.
Cannot insert query:Duplicate entry '0' for key 'PRIMARY'
This is the data in the table
mysql> select * from guitarwars;
++-+
oops - I added a an extra "id" field. There were only 4 in OP's
DESCRIBE email.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 10/1/2012 12:32 AM, Tim Dunphy wrote:
Hello list,
I'm trying to learn and get comfortable with HTML forms in PHP. In one
example I am trying to include a file upload in one of the forms. I can
connect to the database but for some reason the MySQL query string is bad.
I've been over this for
On 10/1/2012 9:12 AM, Tommy Pham wrote:
On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner 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 ver
On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner 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 wor
On 10/1/2012 12:32 AM, Tim Dunphy wrote:
Hello list,
I'm trying to learn and get comfortable with HTML forms in PHP. In one
example I am trying to include a file upload in one of the forms. I can
connect to the database but for some reason the MySQL query string is bad.
I've been over this for
8 matches
Mail list logo