I see what you mean, you could use the "quote" function like this:
// Connect to the database
function connect() {
$status = $this->db_handle = mysql_connect(DB_HOST, DB_USERNAME, DB_PASSWORD);
if(mysql_error()) {
$this->connected = false;
$this->error = mysql_error();
} else {
if(!mysql_select_db(DB_NAME)) {
$this->connected = false;
$this->error = mysql_error();
} else {
mysql_query("SET NAMES utf8"); // this line was added!
$this->connected = true;
}
}
return $this->connected;
}
cheers
Klaus