PHP Code:
$query_links = "select link_name, link_page from admin_links"; $mysql_links = mysql_query($query_links) or die(mysql_error()); switch($page) { while ($fetch_links = mysql_fetch_array($mysql_links)) { case "$fetch_links[\"link_name]\"]": require_once("$fetch_links[\"link_page\"]"); break; } }
Basically I had this idea this morning. So I thought I would give it a shot.
And it doesn't seem to run(big surprise) the switch doesn't like the loop inside of it.
Any thoughts of how to get this to work though?
__________________
"Good News Everyone, by reading this your hearing my voice."
|