Add new block
Content Type: PHP
Content
class myClass {
public function toString() {
global $db;
$result = $db->query_read('SHOW DATABASEs');
$ret = 'DB List: ';
while($row = $db->fetch_array($result)) {
$ret .= $row['Database'] . ' - ';
}
return $ret;
}
}
$mc = new myClass();
return $mc->toString();
Template to Use: block_html