Jump to content
Larry Ullman's Book Forums

Chapter 13 Error


Recommended Posts

I am stuck on chapter 13. I downloaded the code and set it up per the book's instructions. I did not change anything except for the mysql login info.

 

On the index page I get the following error. I even added data to the table from mysql prompt and I can also run the query from mysql prompt and it returns value.

 

Could not retrieve the data because:

.

The query being run was: SELECT quote_id, quote, source, favorite FROM quotes ORDER BY date_entered DESC LIMIT 1

If I try to add a quote, I get this error:

Could not store the quote because:

.

The query being run was: INSERT INTO quotes (quote, source, favorite) VALUES ('', '', 0)

Link to comment
Share on other sites

I created an entry into the table from the mysql prompt. I can run the Select query from the prompt no problem. Yes I populated the form. I downloaded the code from this site. I only edited the the mysql username and pwd.

Link to comment
Share on other sites

 Share

×
×
  • Create New...