I'm relatively new to PHP and entirely new to mySQL.
I have a database named "quotes" setup with about 50 quotes, with three fields: ID, quote, and author.
ID is the numerical ID number, quote is the actual quote itself, and author is the person who said the quote.
I am putting together a page that lists all of the quotes in the database catagorized by author (there are only about three different "authors" throughout the 50 quotes).
How do I go about searching the database for any row where author = "a" and printing out the quote field in that row?
I have a database named "quotes" setup with about 50 quotes, with three fields: ID, quote, and author.
ID is the numerical ID number, quote is the actual quote itself, and author is the person who said the quote.
I am putting together a page that lists all of the quotes in the database catagorized by author (there are only about three different "authors" throughout the 50 quotes).
How do I go about searching the database for any row where author = "a" and printing out the quote field in that row?
Comment