stevenmw
08-06-2007, 07:16 AM
These days there are many websites ran entirely out of databases. Say someone has a table in a database, and each row of that table contains code that makes up a single web-page.(each row has the code for one web-page)
Now let's say there is a single web-page that uses several queries to pull out each row of the database I mentioned above seperately. This way a single web-page can display many web-pages.
Is this possible?
Could a navigation be made to where when a link is clicked the row corresponding to that link could be displayed all by itself?
I'm know I can use the ids that correspond to each row in the table, but how would I set the query up that pulls out the row? First how would I only display one row at a time, second how would I set up the query so it's pulls out a different row's id depending on which link in the navigation is clicked?
And finaly how would I make a navigation that generates a new link whenever a new row / page is added to the database?
Now let's say there is a single web-page that uses several queries to pull out each row of the database I mentioned above seperately. This way a single web-page can display many web-pages.
Is this possible?
Could a navigation be made to where when a link is clicked the row corresponding to that link could be displayed all by itself?
I'm know I can use the ids that correspond to each row in the table, but how would I set the query up that pulls out the row? First how would I only display one row at a time, second how would I set up the query so it's pulls out a different row's id depending on which link in the navigation is clicked?
And finaly how would I make a navigation that generates a new link whenever a new row / page is added to the database?