$sql = "SELECT * FROM ad_user_types"; $params = array(); $res = $db->select($sql, $params); $counter = 0; $table = ""; while($row = $res->fetchRow()) { if($counter == 0) { $keys = array_keys($row); $table .= ""; foreach($keys as $key) { $table .= ""; } $table .= ""; } $table .= ""; foreach($row as $key => $value) { $table .= ""; } $table .= ""; $counter++; $table .= "\n"; } $table .= "
$key
$value" . "
' . "
$deletebutton
"; echo "
";
	echo $table;
	echo "
";
ad_ut_idad_typead_sortad_activead_createdad_updated
1redN2006-12-26 10:30:110000-00-00 00:00:00
2activeY2006-12-26 11:20:490000-00-00 00:00:00
3AY2006-12-27 12:39:160000-00-00 00:00:00
8WEDNESdayY2006-12-27 15:42:020000-00-00 00:00:00
5AMAZIngY2006-12-27 12:43:060000-00-00 00:00:00
9THURSdayY2006-12-27 15:43:470000-00-00 00:00:00
10MONDAYY2006-12-27 15:49:450000-00-00 00:00:00
11WESLEYY2006-12-27 15:50:290000-00-00 00:00:00
12wesY2006-12-27 15:51:550000-00-00 00:00:00
13yelsewY2006-12-27 15:55:310000-00-00 00:00:00
15gfdghfdY2006-12-27 15:57:050000-00-00 00:00:00
16gfdgfdgfdY2006-12-27 15:57:470000-00-00 00:00:00
18wewewY2006-12-27 15:59:220000-00-00 00:00:00