este fue el codigo que modifique...
Código PHP:
class consultaSql{
public $handle;
private $result;
private $countRecords=0;
private $row_db;
public $db_server;
public $db_user;
public $db_passwd;
public $db;
function __construct(){
include("conf.php");
$this->handle = mysql_connect($db_server, $db_user, $db_passwd) or die(mysql_error());
mysql_select_db($db, $this->handle);
}
public function query($sql_string){
$this->result = mysql_query($sql_string, $this->handle);
}
public function show_query(){
$this->row_db = mysql_fetch_array($this->result);
return $this->row_db;
}
public function close(){
return mysql_close($this->handle);
}
}