Rookie, PHP in the background edit, preview a news, get not the ID

Source: Internet
Author: User
Beginner PHP, try to do a news small example, in the background editing, preview a news, id pass, not get the corresponding content, please help to see

The mouse is placed in the preview, edit there, the address shown is xxxx/admin/news.php?id=

news.php page

news.php page
 
  



list.php page      target= "_blank" > Browse




Database fields


Please help the teacher to see,


Reply to discussion (solution)

The sentence should read:
"target=" _blank "> Browse

In addition, Print_r ($rows); See what the results are.

 
  

Id= " attention closed

target= "_blank" > Browse

Missing

If the data is not mistaken, do this:

"target=" _blank "> Browse

The red part should be in quotation marks, basic HTML knowledge ....

The original PHP format can not add color tags, again:
"target=" _blank "> Browse
The red part should be in quotation marks, basic HTML knowledge ....

In addition, like this error, you can see the browser's Web page source file to know why this is the case.
Sometimes it is not the output, but you output the wrong place, the browser after parsing causes you to see.

You are missing a "

 
  




+1

The sentence should read:
"target=" _blank "> Browse

In addition, Print_r ($rows); See what the results are.

Thank you very much. Thank you, the quotation marks are in the wrong place ...

 
  

Thank you for your reply,

Id= " attention closed

Thank you
  • 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.