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
hmm best way to set up my database.
Old 06-04-2009, 07:18 PM hmm best way to set up my database.
Average Talker

Posts: 15
Name: taylor
Trades: 0
I am building a web site that is linked to a database. the database is full of contacts that can be displayed using the php select from table function. everytime a user searches the php script runs and displays the appropriate contact information. The tables within the database are populated by individuals entering there information in a form.

I want to revamp the site so that contacts are found only by browsing rather than searching. rather than running a php script in order to get results for browsing i want to catagorize the contacts so that they are displayed without runing a php script but rather just pulling up another web page.

for example. users could browse from the following options.

People| Cars | animals

each link would then take them to another page where they could either view all the people or cars or animals or narrow the search farther.

so under the "Cars" link there is a list of all cars then another sub catagory of links.

chevy|honda|saturn

and again under honda it displays all the honda's and also a sub catagorys

civic| accord.


so my question is

1. what is the best way to do this without running running a select from table script?

2. how do i set up my tables??

I know this is a lot to chew on but if someone with some experience would try that would be great. if im not being clear enough let me know and i will explain in more detail.

if i could simply display rows of a table on each webpage i could simply link the pages to create this effect. so is there a way to display table rows or even entire tables on a web page with out running a php script?

Last edited by antioch1st; 06-04-2009 at 07:24 PM..
antioch1st is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-09-2009, 09:47 PM Re: hmm best way to set up my database.
Skilled Talker

Posts: 79
Name: oliver
Trades: 1
Unless im understanding the question incorrectly i do not see how you would be expecting to display data from a database on a website without using a select statement, in the example of selecting the catagory cars or even a sub catagory honda there would always need to be an sql statment to get the information from the database unlike the searching way were u would be saying select somthing from the table were somthing has the value of the searched term you would still need a statment to select this information just this time u would be selecting everything in the cars category etc.

I might not be understanding the question correctly tho, as for setting up your tables that would really depend on the ammount of information the database is storing which would determine how many tables you would need to make it a relational database.

hopfully somthing from this reply will make some sense lol
cybernetic is offline
Reply With Quote
View Public Profile
 
Old 06-10-2009, 02:08 AM Re: hmm best way to set up my database.
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
i think the reason that you dont want to use PHP boils down to your skillset

Cant get away from it. You need to learn some scripting
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to hmm best way to set up my database.
 

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.11989 seconds with 12 queries