How to deal with edit. php in the PHP100 video tutorial

Source: Internet
Author: User
Edit in the PHP100 video tutorial. the php video tutorial code is as follows. the function is to click edit and select & nbsp; in the database, the ID is set to auto_increment. in the video tutorial, you can easily obtain the array of current comments, but I cannot get it. In the $ sqlselect & nbsp; * & nbsp; from & nbsp; 'feedback' & nbsp; w tutorial on PHP100, edit. php
The code of the video tutorial is as follows. the function is to click edit to select the id = "id of the current selected comment and then edit its content". the ID in the database is set to auto_increment, in the video tutorial, the array of current comments can be obtained easily, but I cannot. In $ SQL = "select * from 'feedback' where 'id' = '". $ _ GET ['id']. "'"; the echo is displayed as select * from 'feedback' where 'id' = ''. Why can't I get the id of the current item or which code is wrong? please help me!
------ Solution --------------------
On your url? Id = this query string?
------ Solution --------------------
If (! Empty ($ _ GET ['id']) {
//
}
When $ _ GET ['id'] is not equal to null, the execution will continue,
Unless your $ _ GET ['id'] is null, var_dump ($ _ GET ['id.

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.