refiking Posted June 10, 2009 Share Posted June 10, 2009 I can't find it. Pretty sure it's suresimple, though: mysql_query("insert into `demo_users` (`name`, `company`, `address`, `city`, `state`, `zip`, `phone`, `email`) values ('$name', '$company', '$address', '$city', '$state', '$zip', '$phone', '$email'")or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/161741-solved-sql-syntax/ Share on other sites More sharing options...
Reaper0167 Posted June 10, 2009 Share Posted June 10, 2009 <?php $sql = "INSERT INTO demo_users(name, company, address, city, state, zip, phone, email)VALUES('$name', '$company', '$address', '$city', '$state', '$zip', '$phone', '$email')"; ?> Link to comment https://forums.phpfreaks.com/topic/161741-solved-sql-syntax/#findComment-853369 Share on other sites More sharing options...
J.Daniels Posted June 10, 2009 Share Posted June 10, 2009 You are missing a closing parenthesis mysql_query("insert into `demo_users` (`name`, `company`, `address`, `city`, `state`, `zip`, `phone`, `email`) values ('$name', '$company', '$address', '$city', '$state', '$zip', '$phone', '$email')") or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/161741-solved-sql-syntax/#findComment-853370 Share on other sites More sharing options...
Reaper0167 Posted June 10, 2009 Share Posted June 10, 2009 sorry,, didn't understand what you wanted. Link to comment https://forums.phpfreaks.com/topic/161741-solved-sql-syntax/#findComment-853372 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.