Dynamic product menu

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Tyronem
Forum Newbie
Posts: 12
Joined: Thu Sep 14, 2006 5:11 pm

Dynamic product menu

Post 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
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
User avatar
Tyronem
Forum Newbie
Posts: 12
Joined: Thu Sep 14, 2006 5:11 pm

LOL I'm just a database player and HTMLr

Post 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!
Post Reply