Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
display 1field of dbase as link to whole dbase row
Old 01-18-2011, 03:01 AM display 1field of dbase as link to whole dbase row
Junior Talker

Posts: 2
Name: Vasilis
Trades: 0
Hello!
Tried to be as descriptive as possible in the title.
We have a one table, five field dbase with mysql and what I want is to display its contents on a website.
Now, I know the php to connect to the dbase etc, what I don't know is this:
How to make one field of all records of the dbase to display on a page alphabetically, as a link, which once you click, shows the whole entry in a fresh page.
More specifically, we are going to have a plant database comprising of one table and five fields(one of them an image). One of the fields will be the name of the plant. I want the name field of all records to show as a list, alphabetically sorted and as hyperlinks, which once you click on, it will show you, all the fields of that particular record.
Here is an example I found on another page: http://www.orchideenforum.de/kdb/index.php4
(Drop down list --> List of records arranged alphabetically as links --> Individual record)
Any help would be greatly appreciated.
Thank you.

Vasilis

Last edited by vstam; 01-18-2011 at 03:02 AM.. Reason: Corected title.
vstam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-18-2011, 04:49 AM Re: display 1field of dbase as link to whole dbase row
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Simplest way: Use an order clause in the query to get the plant list sorted alphabetically. get name and primary key for each, generate a link like get_plant.php?plant=primary_key, then get_plant.php can do a query for all the details.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Old 01-19-2011, 03:19 AM Re: display 1field of dbase as link to whole dbase row
Junior Talker

Posts: 2
Name: Vasilis
Trades: 0
Thank you for your reply.
vstam is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to display 1field of dbase as link to whole dbase row
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11218 seconds with 12 queries