Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a php website powered by SQL

Status
Not open for further replies.

jeggah

Programmer
Joined
Jun 19, 2004
Messages
1
Location
GB
This may sound a bit confusing so I'll use an example.

Say I want to make a book-review website using PHP, and I want to write lots of book reviews. Instead of creating a page for every book, which could mean hundreds and hundreds, is there a way you can do this with mySQL and if so, how?

I would prefer to maybe fill out a form on a website with the 'book-review' which would enter the data into the database, and then you will be able to access this 'book-review' using a URL (in your website template of course)

Please reply and help me
 
There isn't really an easy way to answer this but if you use a search or a form to pass to a PHP page which "book id" from the database you want to view you can use one page to view any book you so choose.
 
Check out the PHP tutorials at devshed.com

There should be a MySQL tutorial there to pull off what you want.

- - picklefish - -
Why is everyone in this forum responding to me as picklefish?
 
if you want it with a little less search work I can advise to have a look at SAMS PHP & MySQL chapter 10 (like on Amazon.com where you can actually browse the complete book)

There is an exmple of a book site including reviews (I mean in the book, not Amazon :)


PS this is not meant as an ad for the publisher mentioned
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top