ainoy31 Posted September 6, 2007 Share Posted September 6, 2007 I can not figure why I keep getting the Query was Empty error message. Here is my code: if(isset($_POST['companyname']) && isset($_POST['companyemail']) && isset($_POST['password']) && isset($_POST['pswdconfirm'])) { echo $cname = $_POST['companyname']; echo "<br>"; echo $cemail = $_POST['companyemail']; echo "<br>"; echo $origPassword = $_POST['password']; echo "<br>"; echo $confirm = $_POST['pswdconfirm']; echo "<br>"; echo $sql = "INSERT INTO username_password (username_ID, username, password) VALUES ('', '$cemail', '$confirm')"; mysql_query($sq1) or die("Error: " . mysql_error()); } Much appreciation. Quote Link to comment Share on other sites More sharing options...
Oldiesmann Posted September 6, 2007 Share Posted September 6, 2007 You have a typo in your code - $sq1 instead of $sql Quote Link to comment Share on other sites More sharing options...
ainoy31 Posted September 6, 2007 Author Share Posted September 6, 2007 it is nice to have another eye set. time for me to retire for the evening. ty much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.