Jump to content

insert data into mysql database 2.9.0.2


tecdesign

Recommended Posts

I was using an older version of mysql (around 2.8) and this code worked fine....

 

$sql = mysql_query("INSERT INTO `members` ( `username` , `password` , `first_name` , `last_name` , `birthday` , `email_address` , `phone` , `fax` , `street_address` , `suburb` , `country` , `city` , `region` , `postcode` , `mobile` , `id` , `signup_date` , `last_login` , `photo` , `total_posts` ) 
VALUES (
'$username', '$password', '$first_name', '$last_name', '$birthday', '$email_address', '$phone', '$fax', '$street_address', '$suburb', '$country', '$city', '$region', '$postcode', '$mobile', NULL , NOW( ) , '00000000000000', 'nopic.gif', '0'
)");

 

Now the code does not work, it doesn't give an error message it just does not insert the data into the database. Can someone out there help?

Link to comment
https://forums.phpfreaks.com/topic/39252-insert-data-into-mysql-database-2902/
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.