Jump to content

Can't insert first row using PHP script


shabadu27

Recommended Posts

I'm new to PHP/MySQL and have been searching high and low for a solution to this...

 

When using my PHP script to insert a row into the database it errors out but does not give me a specific error. When I use the MySQL command line client I can insert the first, second, third, or any number of rows without a problem.

 

What I don't understand is, once I have inserted a row using the command line client, my PHP script will insert rows without issue.

 

So my question is, what is it about the first row being inserted that makes it so special? One of the columns in the table is an AUTO_INCREMENT field, so i'm guessing that has something to do with it?

 

Link to comment
https://forums.phpfreaks.com/topic/221193-cant-insert-first-row-using-php-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.