How to nest

Source: Internet
Author: User
How to nest? I have never seen the rookie PHP language & #183; & #183; the director told me to do a website now with a poor link jump & #183; & #183; & nbsp; & lt ;? Php & nbsp; $ id =$ _ GET [& quot; id & quot;]; & nbsp; $ How to nest sq?
I have never seen the rookie PHP language ··
The director asked me to make a website. now I have a link jump ··

$ Id = $ _ GET ["id"];
$ SQL = "select list from list where id = $ id ";

$ Query1 = mysql_query ($ SQL );
$ Slq1 = "select content from $ query ";
$ Query = mysql_query ($ sql1 );

While ($ array = mysql_fetch_array ($ query )){
?>
No More

Run the command that SLQ1 is not defined ··
$ Slq1 = "select content from $ query ";
$ Query how to write ·

------ Solution --------------------
$ SQL = "select list from list where id =". $ id;

Isn't that true?
------ Solution --------------------
$ Slq1 = "select content from $ query ";
$ Query = mysql_query ($ sql1 );

The variable name is incorrect.

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.