displaying content dynamically?

Discussion in 'PHP' started by bobocheez, Aug 13, 2009.

  1. #1
    Hi,
    I wish to make my page more dynamic. However, I'm stuck.

    The main page is the index page whitch has 3 columns. The left column is the categories section and calls the right column which is the menu section. The menu will call the middle column.

    Here's the basic structure of the left col:

     
    $cat_id = $row['cat_id'];
           $cat = $row['cat'];
      echo "<a href=\"index.php?menu=$cat\">$cat</a><br/>";
    
    PHP:
    Now the index page uses this to call the content:
     
    if (!isset($_REQUEST['menu']))
                    include("right.php");
               else
               {
                    $content2 = $_REQUEST['menu'];
                    $nextpage2 = $content2 . ".inc.php";
                    include($nextpage2);
                }
    
    PHP:
    As you can see, I was using individual pages. Is it possible to call database information(specifically rows) instead of individual pages?
     
    bobocheez, Aug 13, 2009 IP
  2. rahahm33

    rahahm33 Well-Known Member

    Messages:
    197
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    125
  3. bobocheez

    bobocheez Active Member

    Messages:
    403
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    oh
    i figured it out
    but thanks though :)
     
    bobocheez, Aug 13, 2009 IP