[php]
global $wpdb;
$results = $wpdb->get_results( $wpdb->prepare(“SELECT * FROM reg_doctors “,0) );foreach($results as $value){
echo “<tr>”;
echo “<td>”.$value->reg_num.”</td>”;
echo “<td>”.$value->name.”</td>”;
echo “</tr>”;
}
[/php]
ID | Name |