ipsa24 Posted August 26, 2012 Share Posted August 26, 2012 $student_id = $_POST['st_id']; $student_pass = $_POST['st_pass']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $gender = $_POST['gender']; $contact_no = $_POST['contact_no']; $qualification= $_POST['qualification']; $city = $_POST['city']; $state = $_POST['state']; $country = $_POST['country']; $pin_code = $_POST['pin_code']; $email1 = $_POST['email1']; $address = $_POST['address']; $resumename = ""; $imagename = ""; $dobdate = date("Y-m-d",strtotime($_POST['dob'])); $select_query="select student_id from student_registration where student_id = '$student_id'"; Error : Unknown column 'student_id' in 'field list' Quote Link to comment Share on other sites More sharing options...
requinix Posted August 26, 2012 Share Posted August 26, 2012 And? Quote Link to comment Share on other sites More sharing options...
floridaflatlander Posted August 26, 2012 Share Posted August 26, 2012 Unknown column 'student_id' in 'field list' $student_id = $_POST['st_id']; $student_pass = $_POST['st_pass']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $gender = $_POST['gender']; $contact_no = $_POST['contact_no']; $qualification= $_POST['qualification']; $city = $_POST['city']; $state = $_POST['state']; $country = $_POST['country']; $pin_code = $_POST['pin_code']; $email1 = $_POST['email1']; $address = $_POST['address']; $resumename = ""; $imagename = ""; $dobdate = date("Y-m-d",strtotime($_POST['dob'])); $select_query="select student_id from student_registration where student_id = '$student_id'"; Error : Unknown column 'student_id' in 'field list' It's thing like this that make me feel good about myself. Quote Link to comment Share on other sites More sharing options...
Christian F. Posted August 26, 2012 Share Posted August 26, 2012 ipsa24: Check your table structure again, and you'll see what the problem is. In fact, it's so basic you should have done this immediately upon seeing that error, without us having to tell you. If you want people to help you, you have to put in some effort to solve the problem yourself. After all, why should we bother to spend our time (which often is very limited) to help you, when you can't be bothered to do so yourself? Quote Link to comment Share on other sites More sharing options...
MMDE Posted August 26, 2012 Share Posted August 26, 2012 I hope you are checking if these post variables are set before actually assigning them to another variable, and that you are sanitizing them before using them against the database. With that said, ChristrianF told you to pretty much what there is to be said. The error message speaks for itself. 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.