Basically I am trying to make a list of items which I have put into an sql database. When I click on an item in the list, I want a "generic" page loaded, with the items description. Im having alot of trouble with getting this generic page to work. Heres what Ive done so far.
The page with shows the list
http://pastebin.com/PE8FkyYQ
http://pastebin.com/GiCpV5AH
The generic page with the items description.
http://pastebin.com/HFnSfqN4
http://pastebin.com/C0zsHpZY
If anyone can help me solve this problem, ill be greatly in there debt!
PHP Noob help
Moderator: General Moderators
Re: PHP Noob help
I haven't read through all your code but what specifically are u have a problem with. Adding them to the database?, Sending data?
The more specific the better
The more specific the better
Re: PHP Noob help
I can list them, on a page, when I click an item on that page, it goes to a generic page, to show a description of the item. Its on this generic page that I am having a problem, none of the items details are showing.
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: PHP Noob help
The key is to get something that identifies the row (from the database) that you want to display and pass that onto the next page, in your case the generic page. Please paste the code for the generic page.Rosaka wrote:I can list them, on a page, when I click an item on that page, it goes to a generic page, to show a description of the item. Its on this generic page that I am having a problem, none of the items details are showing.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering