Okay, I'm working with php to add a row to my MySql table that is called 'addresses'. I use the following code to add my row, which works (kind of) perfectly.
Notice the null value in the first position there ('',
The code will not work without that value there, but if it is there, it offsets everything in my database by one. IE. it puts first name in the last name field.
Why? You are my hero if you can explain this to me. Thanks!
Code:
$query="INSERT INTO addresses VALUES
('','$fname','$lname','$bday','$address','$city','$state','$zip')";
Notice the null value in the first position there ('',
The code will not work without that value there, but if it is there, it offsets everything in my database by one. IE. it puts first name in the last name field.
Why? You are my hero if you can explain this to me. Thanks!