•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,567 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,595 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 495 | Replies: 1
![]() |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I am relatively new to php and I want to create a basic page with dynamic content. So say I have a page called products.php that acts as an index to my products, a link such as products.php?product=box would go to a page with the particular details of 'box' and products.php?product=chair would go to a page with the details of 'chair' etc. And is there a way to do this without register_globals switched on?
Many thanks
Alex
Many thanks
Alex
Last edited by aso186 : Oct 21st, 2007 at 10:41 am.
•
•
Join Date: Aug 2007
Location: Morrisdale, PA
Posts: 52
Reputation:
Rep Power: 2
Solved Threads: 5
If you are using a database to store the information, create a recordset for your values displayed on your product page.
the example below will take the user to a page called productInfo.php and display the information about the "ID" of the item selected. (This carries the variable of"ID" in the url)
On the productInfo page create another recordset that is filtered by the URL parameter of you variable set (in this case I am using "ID")
once the productInfo.php loads, it will display the information about that particular item.
the example below will take the user to a page called productInfo.php and display the information about the "ID" of the item selected. (This carries the variable of"ID" in the url)
<a href="productInfo.php?ID=<? echo $row_rsInfo['ID'];?></a>
On the productInfo page create another recordset that is filtered by the URL parameter of you variable set (in this case I am using "ID")
once the productInfo.php loads, it will display the information about that particular item.
I keep hitting "escape", but I'm still here!!!!
:}
:}
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Installing PHP on Win XP Pro (PHP)
- php queries to mysql do not return anything. (MySQL)
- Multiple queries within one php file (PHP)
- Java or PHP? (IT Technologies and Trends)
- dreamweaver, PHP and submit form query (PHP)
- Forum lurkers, introduce yourself ... !! (Community Introductions)
- PHP - Half the way response and continue PDF processing (PHP)
- if statement in php (PHP)
- PHP newbie, project feasibility (PHP)
Other Threads in the PHP Forum
- Previous Thread: pagination not displaying results
- Next Thread: inserting arabic characters into mysql


Linear Mode