<?PHP
$user_name = "root";
$password = "xxxxxxxxx";
$database = "Inxxxxxxx Pxx";
$server = "127.0.0.1";
$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);
if ($db_found) {
$SQL = "SELECT * FROM log_gmoperator";
$result = mysql_query($SQL);
while ( $db_field = mysql_fetch_assoc($result) ) {
print "<input type='text' value='GMID - " . $db_field['dwGmID'] . "'>";
print "<input type='text' value='Command- " . $db_field['szCommand'] . "'>";
print "<input type='text' value='Suceeded-" . $db_field['bSuccess'] . "'>";
print "<input type='text' value='Time-" . $db_field['time'] . "'>";
}
mysql_close($db_handle);
}
else {
print "Database NOT Found ";
mysql_close($db_handle);
}
?>
Bookmarks