MySQL Forums
Forum List  »  PHP

Trouble displaying information from table in PHP, please help.
Posted by: Costa Gauci
Date: April 24, 2013 08:23AM

Hi there,

I'm learning PHP and have come across a problem I'm wondering if one of you can help me with.

I'm trying to run this code from Addison Wesley PHP and MySQL Web Development 4th Edn. When I try to run it, it comes up with a connection error but when I remove 'books' from line 22 it connects but doesn't seem to display any search results.

The code can be found here:

Since then I have tried improving on the way I connect to the code but still receive no results, the new code can be found here:

I am still very new to PHP and MySQL so would greatly appreciate any help given.

The information is definitely found in the database as shown here:

And the live docs can be found here:

Many thanks,


Options: ReplyQuote

Written By
Trouble displaying information from table in PHP, please help.
April 24, 2013 08:23AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.