PHPinsert syntax. The previous program had the following sentence: $ execinsertintoinfo (ename, pcname) values (. $ _ POST [ename] .. $ _ POST [pcname].); explain the meaning of this sentence. Syntax of SQL INSERT record:
$ Exec = "insert into info (ename, pcname) values ('". $ _ POST ["ename"]. "','". $ _ POST ["pcname"]. "')";
Explain the meaning of this sentence. The syntax of SQL INSERT records is:
Insert into table name (field name 1, field name 2,...) values ("Field 1 value", "Field 2 value ",...)
The previous program was based on this syntax. it should be noted that I have added quotation marks to the values in the values brackets because the corresponding field type is varchar, if the field type is int, you should remove the quotation marks! Be sure to pay attention.
Parameters $ exec = "insertintoinfo (ename, pcname) values ('". $ _ POST ["ename"]. "','". $ _ POST ["pcname"]. "')"; explain the meaning of this sentence. SQL INSERT record syntax...