$query = INSERT INTO users (username, first_name, last_name, password, registration_date, phone_num, secretAU, secretQU, secretAP, secretQP, fax_num, email) VALUES ('doni49', 'Don', 'Ireland', PASSWORD('kirsten'), NOW(), '215-932-2391', 'Jennifer', 'What was your first girlfriend\'s name?', 'Deland', 'What is your father\'s middle name?', '508-546-0464', 'firstname.lastname@example.org') $result = @mysql_query ($query); // Run the query.
It fails to add the data to the DB. I've confirmed that the script IS logging in. The user has "ALL PRIVILEDGES" to the DB. The "result" variable ends up with NO value.
echo '<br><br><br>Hi<br>' . $result . 'Bye<br><br><br>';
The above shows this:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
I THINK it might have something to do with the "Collation" in the user table fields, when I try to remove the collation via phpMyAdmin, it says they were altered. But then when I check the user table structure, the collation is back.
I've attached an image showing the table structure in phpMyAdmin.
[img src=\"http://126.96.36.199/usertable.jpg\" border=\"0\" alt=\"IPB Image\" /]
Can someone help me track this down?