Forum Statistics

  • Forum Members: 4,502
  • Total Threads: 3,657
  • Total Posts: 1
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 06-19-2009, 08:49 AM   #1 (permalink)
 
Status: Newbie
Join Date: Jun 2009
Posts: 3

Rep Power: 12 ranga227 is on a distinguished road



Default Looping in a switch

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?
ranga227 is offline Add Infraction for ranga227   Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.5.0 RC2