Forum Moderators: coopster
Do you mean so that it is on permanent display as html pages are? (That's the problem the way things are: because spiders don't click buttons, the text remains in the db for likely spider visits.)
If the site has a hundred pages in the db, does this mean I should have a hundred pages duplicated in permanent display? Couldn't be, could it, otherwise what's the use of php/mysql?
I hope you won't mind explaining - or directing me to some article please.
Cheers
As coopster says, you need to read the info from the database and display it as an html file (or .php or .asp or whatever). In other words, you need to stick it into a format that a normal web browser can read.
From what it sounds like, it seems that the easiest way for you to do this would be to create a php page with a $_GET variable which corresponds to the page you want to get from the database.
So, you create a page mypage.php
Pass it a variable to tell it which page to load from DB: mypage.php?page=widgets1
In the php, use $_GET to get the variable passed to the script: $page=addslashes($_GET['page']);
This page will then take the variable 'widgets1', look up the correct database entry for widgets1 and load it up for the spider (and/or users) to chew on.
You might then ask, what is the point of this? It looks like you'll have to make a page for every page in the database... however, if you then create another page with a whole bunch of links like so:
mypage.php?page=widgets1
mypage.php?page=widgets2
mypage.php?page=widgets3
mypage.php?page=widgets4
You can display 100 (or more) different pages from your database with just the one page. It also allows your users to browse directly to the articles in your database.
Not sure if all this makes sense, it's too early in the morning to be thinking!