RE: [PHP] Question about how to do this...

From: Date: Sun, 08 Jul 2001 20:51:12 +0000
Subject: RE: [PHP] Question about how to do this...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56802@lists.php.net to get a copy of this message
what if I'm storing HTML into the database, or even PHP code itself for that matter, is this method that you mentioned still better than the switch statement method? chris -----Original Message----- From: Ben Bleything [mailto:bleythbe@mailbox.orst.edu] Sent: Sunday, July 08, 2001 4:59 PM To: cuzo@mediaone.net; 'PHP General List (E-mail)' Subject: RE: [PHP] Question about how to do this... 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:cuzo@mediaone.net] 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#56802) next »