<?php
include("class.mysql.connection.php");
$mysql_server = new mysql_connection("localhost", "user", "pass", "mydb");
$mysql_server->open();
$result = $mysql_server->send_result_sql("SELECT * FROM thattable", 0);
//This checkup takes into account that there are no error column in the
//table queried.
if(isset($result[error])){
//There was an error
Echo "An error occured<br>" . $result[error] . "<br>" . $result[sql];
}else{
//There are results
while($row = mysql_fetch_array($result)){
//Echo my data
}
}
$mysql_server->close();
?>
|