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.