The following is the PHP form value extraction file written by my younger brother. please take a look at it. what are the problems ~ []

Source: Internet
Author: User
The following is the PHP form value extraction file I wrote. please take a look. what's the problem ~ [Online, etc.] & lt ;? Include (& quot; connconfig. php & quot;); mysql_query (& #39; SET & nbsp; NAMES & nbsp; & n the following is the PHP form value extraction file I wrote, please take a look. what's the problem ~ [Online, etc.]
Include ("connconfig. php ");
Mysql_query ('set NAMES gb2312 ;');
$ Inttime = time ();

$ Print = "insert into kanqing
(Leixing, quyu, dizhi, guimo, lianxiren, lianxidianhua, xiangmu, jianjie, beizhu) values
($ _ POST [leixing], $ _ POST [quyu], $ _ POST [dizhi], $ _ POST [guimo], $ _ POST [lianxiren], $ _ POST [lianxidianhua],
$ _ POST [xiangmu], $ _ POST [jianjie], $ _ POST [beizhu] ";
Mysql_query ($ print );

Echo $ print;

?>

------ Solution --------------------
Echo $ print;
Check whether the SQL statement is correct!
------ Solution --------------------
What's wrong with you?
------ Solution --------------------
I do not know what connconfig. php is, or what an error has occurred, or the error prompt.
--|
------ Solution --------------------
SQL does not have a ticket number.

It is best to make an encapsulation class. You can directly use the array to submit the automatically generated SQL statement, which makes it easy to add errors.
------ Solution --------------------
Quotation marks
------ Solution --------------------
Parentheses and quotation marks are missing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.