PHP code problem

Discussion in 'PHP' started by johnny_boy, Aug 3, 2007.

  1. #1
    Can someone please tell me what I need to add to:
    $title = $desc = "Insert Page Title Here";
    to have this return a database table name from a particular table in the database. Here is the entire code:

    <?
    require_once( ROOT_DIR ."/include...");
    require ROOT_DIR . "/include...";
    $title = $desc = "Insert Page Title Here";
    $onepage = 10;

    $sql = "select * from ad WHERE style=''";
    $rs = $db->Execute( $sql );
    $ad = $rs->fields['content'];


    ?>

    Thanks.
     
    johnny_boy, Aug 3, 2007 IP