Excuse me, why does this address book browser have no data to display? Thank you

Source: Internet
Author: User
"Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >


<title>PHP_ Address Book Browser</title>



Address Book Browser







Reply to discussion (solution)

Request Great God Test Guide! Thank you!

$query = "Select Id,name,email from AddressBook WHERE (name= ' $name ' and id> ' $id ')";

ID is a numeric type, do not use quotation marks, should be changed to
$query = "Select Id,name,email from AddressBook WHERE (name= ' $name ' and id> $id)";

$query = "Select Id,name,email from AddressBook WHERE (name= ' $name ' and id> ' $id ')";

ID is a numeric type, do not use quotation marks, should be changed to
$query = "Select Id,name,email from AddressBook WHERE (name= ' $name ' and id> $id)";



No way! Remove the quotation marks or no data display!

Request Great God Test Guide! Thank you!

if (Isset ($left)) {
The $left has never been assigned a value, so $left does not exist
So you don't get into the query branch, and there's no data.

$left variable you have no definition and will not enter the following branch.

if (Isset ($left)) {

if (Isset ($left)) {
The $left has never been assigned a value, so $left does not exist
So you don't get into the query branch, and there's no data.



According to the above specific how to define the assignment Ah, hope specific code guidance! Thank you!

$left variable you have no definition and will not enter the following branch.

if (Isset ($left)) {



According to the above specific how to define the assignment Ah, hope specific code guidance! Thank you!


Extract ($_post); Add this sentence.
function Check_mysql () {


Extract ($_post); Add this sentence.
function Check_mysql () {



Hello! Now add, update, delete function OK! But left and right query and query keywords can not be implemented, or do not display! Please continue under the guidance of the great God, thank you!

Thank you, Moderator!!

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