How to display custom table without using views? I have tried it to display the table by using core PHP concept and it display the table but at the top of the page now i need to display inside my page my current display is below 



and my code for view is 

function testing_db_viewall($form, &amp;$form_state){
    $result = db_select('infobox_new')
    -&gt;fields('infobox_new', array('name','emailid','contactno','nid'))        
    -&gt;execute();

    $entries = $result;
    $output ='';
    $rows = array();

    foreach ($entries as $entry) {
    // print_r($entry);
    // echo "&lt;br&gt;";
        $rows[] = array( $entry-&gt;name, $entry-&gt;emailid, $entry-&gt;contactno, l('edit','examples/edit/'.$entry-&gt;nid), );
    }
  // Make a table for them.
    $header = array(t('Name'),t('Email id'), t('Contact No'),t('edit'));
    $output .= theme('table', array('header' =&gt; $header, 'rows' =&gt; $rows));

     echo $output;
}


I want to display my table after my title i.e. "Custom Table View"

Thanks in advance
Instated of "echo"


  echo $output;


You have to write 


  return $output;