Use a database.  With mysql, you can store the text into a table with
primary key called 'page' or something like that, and a text field of
some sort.

Then, do mysql_query("SELECT pagetext FROM website WHERE page=$page;");

=>

Dive into it.  It's easier than it looks.

Ben

-----Original Message-----
From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 08, 2001 1:44 PM
To: PHP General List (E-mail)
Subject: [PHP] Question about how to do this...

hey-

so I want to have my site so that the urls are like /index.php?page=bio
....
the way I made the index.php so far is just one gigantic switch
statement...is there a better way to do it?


chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to