Okay, i'm wondering at the consistency of php/mysql, or more likely, the consistency (perhaps better stated acuracy) of my coding.
Anyway, now it just started it working. Why changed? I simply ran my create.sql and populate.sql scripts again, recreating and repopulating the entire database. Then it works.
Now, in doing so, something weird happend, and for this, you will understand the reason why i started this post the way i did. My create.sql file is a script file that i do NOT touch. It stays the same and makes my job easy. My last line of the create.sql file is an ALTER TABLE command that tells a specific table to do an auto-increment on a particular field, AND to start that auto-increment at a number I specify.
So you ask, what was so weird? Well, that auto-increment did not take. I submitted a cart, and the cartID began at one!!! So then, i was like, "ok, maybe i'm going crazy." I took a deep breath, ran the create.sql and populate.sql scripts again, submitted a new cart, and this time, the cart number begain at the proper number, the one given in the alter table command.
So what the heck is up with that???