Home>

nothing is displayed in SQL, errors also does not produce.

{
    $ SQL= "INSERT INTO Plant (Name, Email, Course, Code, Pass) Values ​​($ name, $ email, $ Course, $ Code, $ Status)";
    HEADER ('Location: Orders.php');
    exit ();
}
? ≫
≪
Title >
Ordering courses <
/title >
≪
Meta Charset= "UTF-8" >
≪
DIV Class= "Login-Page" >
  ≪
DIV Class= "Form" >
    ≪
Form Method= "Get" >
      ≪
INPUT TYPE= "TEXT" name= "name" placeholder= "Your name" />
      ≪
INPUT TYPE= "TEXT" name= "Email" Placeholder= "Email" />
      ≪
P >
≪
B >
Type of service you want to order: <
/b >
≪
BR >
           ≪
INPUT TYPE= "RADIO" NAME= "COURSE" VALUE= "Higher Full-time Education" >
 Higher full-time <
BR >
           ≪
INPUT TYPE= "RADIO" NAME= "COURSE" VALUE= "Average full-time education" >
 Average full-time <
BR >
           ≪
INPUT TYPE= "RADIO" NAME= "COURSE" VALUE= "Higher Full-time Education [Budget]" >
 Higher full-time education [budget] <
BR >
           ≪
INPUT TYPE= "RADIO" NAME= "COURSE" VALUE= "Average full-time [budget]" >
 Average full-time education [budget] <
BR >
           ≪
INPUT TYPE= "RADIO" NAME= "COURSE" VALUE= "Higher Full-time [budget] [hostel]" >
 Higher Full-time [budget] [hostel] <
BR >
      ≪
/P >
      ≪
INPUT TYPE= "TEXT" name= "Code" Placeholder= "Your promotion" />
      ≪
P >
≪
INPUT NAME= "submit" type= "submit" value= "Register" >
≪
/P >
    ≪
/Form >
  ≪
/div >
≪
/div >
`

And who will quote the string literals?

Akina2021-06-23 15:47:43

I don't know the banana

Fasedmask2021-06-23 16:01:55

Errors also does not give out. gives. Only you do not output them. Look in the manual that you need to add to the code to see them.

Akina2021-06-23 16:56:12
  • Answer # 1

    SQL is the query language in the database (for example, to the MySQL database). You wrote a SQL request, but it was not sent to the database. That is, you just created a line. So does not work.

    In programming, there is no magic -everything comes from somewhere, and does not arise in magic. To get an answer from the database, you need to send a request to it. The documentation is a description of all necessary for working with the database of functions. If you work with MySQL, you will probably be easier for you to start with the study of the expansion of MySqli, it has Guide. When you feel confident, you can try another solution to work with databases (not only mysql) - Pdo. PDO is more popular among developers solution.

  • Answer # 2

    SQL is the query language in the database (for example, to the MySQL database). You wrote a SQL request, but it was not sent to the database. That is, you just created a line. So does not work.

    In programming, there is no magic -everything comes from somewhere, and does not arise in magic. To get an answer from the database, you need to send a request to it. The documentation is a description of all necessary for working with the database of functions. If you work with MySQL, you will probably be easier for you to start with the study of the expansion of MySqli, it has Guide. When you feel confident, you can try another solution to work with databases (not only mysql) - Pdo. PDO is more popular among developers solution.