Page 1 of 1

PHP Noob help

Posted: Mon Jan 17, 2011 7:58 am
by Rosaka
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!

Re: PHP Noob help

Posted: Mon Jan 17, 2011 8:48 am
by mellowman
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 :D

Re: PHP Noob help

Posted: Mon Jan 17, 2011 8:53 am
by Rosaka
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.

Re: PHP Noob help

Posted: Mon Jan 17, 2011 10:42 am
by social_experiment
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.
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.