Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,673 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,182 people online right now. Registration is fast and FREE... Join Now!




Sample program

 
Reply to this topicStart new topic

Sample program

antiturncoat
post 10 Aug, 2007 - 04:56 AM
Post #1


D.I.C Head

**
Joined: 8 Aug, 2007
Posts: 98


My Contributions


is there any sample programs where in you click a a certain items on product page and display it on another page with the full details about the products.. i dont want to create each page for all the products
User is offlineProfile CardPM

Go to the top of the page

Martyr2
post 10 Aug, 2007 - 09:15 AM
Post #2


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 5,062



Thanked 175 times

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions


Normally you would setup a product listing page where you list each item along with its product code and a button that passes that product code (via a form or via javascript function) to a second PHP page where it then uses that product code to list the product details on the page.

As for examples of this, look around for articles that discuss passing data from one page to another. That is the heart of your solution. Your product listing page will pass a product id to the second page which uses that to lookup the product details and present them in a detailed page. Two pages to setup the entire thing.

Below is one good site for showing you this... be sure to click the next page link towards the bottom to see some examples of how to pass data between pages using PHP.

Passing data between pages with PHP

Let us know if you have any other questions.
User is offlineProfile CardPM

Go to the top of the page

antiturncoat
post 10 Aug, 2007 - 01:44 PM
Post #3


D.I.C Head

**
Joined: 8 Aug, 2007
Posts: 98


My Contributions


how about passing it using links... like a for example i have 2 category of a product the "small" and the "big".. i click the link small and it displays all the products with the category small on another page..
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 10 Aug, 2007 - 03:38 PM
Post #4


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,987



Thanked 78 times

Dream Kudos: 1175
My Contributions


Then you would just need to use get vs as post variable methods.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:19AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month