Put result of mysql query into hyperlink to search database

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
phillyrob
Forum Commoner
Posts: 34
Joined: Wed Jun 18, 2008 12:00 am

Put result of mysql query into hyperlink to search database

Post by phillyrob »

I am trying to take a result from a database query and put it into a hyperlink or into a (submit button that I will call edit button) to allow a database to query again. In other words if a query returns several items for sale, with the same name, but differerent prices, I want a user to be able to click on a link and edit info on their one particular item based on the id #. I am confused. Please help.
User avatar
starram
Forum Commoner
Posts: 58
Joined: Thu Apr 10, 2008 1:27 am
Location: India
Contact:

Re: Put result of mysql query into hyperlink to search database

Post by starram »

Simply pass that products id in the hyperlink and then on the hyperlink page you can create a form to edit the values of that product.
phillyrob
Forum Commoner
Posts: 34
Joined: Wed Jun 18, 2008 12:00 am

Re: Put result of mysql query into hyperlink to search database

Post by phillyrob »

Thanks starram it worked like a charm.
User avatar
starram
Forum Commoner
Posts: 58
Joined: Thu Apr 10, 2008 1:27 am
Location: India
Contact:

Re: Put result of mysql query into hyperlink to search database

Post by starram »

Wow, its great to know.
Post Reply