Page 1 of 1

Dynamic product menu

Posted: Thu Sep 14, 2006 5:19 pm
by Tyronem
Hi All, I am brand new to PHP - (In case you couldnt tell :) )

What I would like to achieve is a product menu that when clicked takes the user to a generic page that then displays the data about the product clicked.


So the code would look something like this (in human speak)

Get productID, product_Name from product_table, order by product_Name, Display Product_Name only

On click navigate to generic page and pass productID to generic page

On generic page load get all from product_Table where productID = ProductID

Display Product

Keep the product menu available.

(There are only about 10 products so hence no categories then product)

Firstly is this possible, secondly anyone know of a good tutorial. Also whats a good book to buy to start me off in PHP

Cheers all

Posted: Thu Sep 14, 2006 5:25 pm
by Luke
definately possible... it sounds like you pretty much know how to do it already. Now you just need to figure out what kind of database/storage for the products you will use and i can better guide you on what to do. As for tutorials... generally (in my opinion) they all suck. 99% of them teach you bad practices that you have to unlearn later. I'd get a book.

I learned with this book... It was alright: http://www.amazon.com/PHP5-MySQL-Bible- ... 24?ie=UTF8

A lot of people recommend O'Reillys books, so you could grab one of those also.

LOL I'm just a database player and HTMLr

Posted: Thu Sep 14, 2006 5:48 pm
by Tyronem
who knows what he wants but doesn't yet know how to get there :)

Thanks for the book link I have ordered it, it looks pretty comprehensive.

i must say open source books, sites and everything else are far more helpful, comprehensive and intuitive than anything MS (or thier developers) have put out that I have seen yet.

Cheers!