tecdesign Posted February 20, 2007 Share Posted February 20, 2007 I was using an older version of mysql (around 2. 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 More sharing options...
marcus Posted February 20, 2007 Share Posted February 20, 2007 Make the end of code: ") or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/39252-insert-data-into-mysql-database-2902/#findComment-189118 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.