<?php
include("SmartSQL.php");
$DB = new SmartSQL('localhost','root','','MySmartBB','mysql',0,'','');
$DB->sql_connect();
$DB->sql_selectdb();
$query = $DB->sql_query("SELECT * FROM MySBB_info");
echo 'Record number : ' . $DB->sql_rows_num($query) . '<br>';
while($srow = $DB->sql_fetch_array($query)) {
echo 'version ' . $srow['MySBB_version'];
}
?>
|