2 Attachment(s)
Need help with PHP and Mysql coding.
I am making a GM system where i can monitor activity from website so i dont have to log the Host server to check things.
Ok so heres where im having some issue, I want to pull mysql info from the server and display that information in either a text box or a neater system much like this : Attachment 5856 and i have made many systems such as our login system and so on yes the login systems password is MD5 then salted so no need to worry there . Now the way i see the data is here : Attachment 5857 , i want to Add text to where the values are being posted but dont know how to do that with the current code im using which i got from this website : http://www.homeandlearn.co.uk/php/php13p2.html
Heres the code i used , its the same as on the websites only my values.
Code:
<?PHP
$user_name = "root";
$password = "xxxxxxxxxx";
$database = "log_gmoperator";
$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 $db_field['dwGmID'] . "<BR>";
print $db_field['szCommand'] . "<BR>";
print $db_field['bSuccess'] . "<BR>";
print $db_field['time'] . "<BR>";
}
mysql_close($db_handle);
}
else {
print "Database NOT Found ";
mysql_close($db_handle);
}
?>
Any ideas from all you coder junkies???