Jump to content

michela

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

michela's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. works perfect, Thank YOU!!
  2. hmmm not sure if that is what I'm looking for.... When the student registers they provide the student id. When they then login to place their order the order has the student name, student_id etc...they are directed to the course page where they select from a drop down the course name and binding type. So from there I want to update a new table in the database called orders which contains one column named order that I want to hold the course name (which was selected from the dropdown box) and the student number. What I want to do once I have that working is to prevent the same student id from ordering the same course
  3. if (!(strlen($_POST['student_id']) >= 6 && strlen($_POST['student_id']) <= ) { error ('Student ID number is either too long or too short!\\n'. 'Please enter your 7 digit student ID number'); This is what I am using to make sure the user only inputs 7 numbers for their student id number, would anyone know how to make sure that it is exactly 7 numbers and not a space added in the middle? Student id numbers are all like this - 1234567 I wish to avoid - 123 567 thanks
  4. Hello, I have a student signup and order database where students can order text online. Once a student orders a specific text I want to set-up the database so that it cannot be ordered again. How can I combine the student_id number (s13) and the order (s1) together and add that to a new table named orders which contains only one column called order? Hope that makes sense. thanks
×
×
  • 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.