PEAK XOOPS - Re: d3forum and the import function in englishin japanese

Re: d3forum and the import function

List posts in the topic

none Re: d3forum and the import function

msg# 1.1.1
depth:
2
Previous post - Next post | Parent - Children.1 | Posted on 2007/3/25 2:49
plusangel  上等兵   Posts: 32
I've patched this file since the beginning (initial setup)

More precise, the specific function looks like this:
Quote:
function connect($selectdb = true)
{
if (XOOPS_DB_PCONNECT == 1) {
$this->conn = @mysql_pconnect(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS);
} else {
$this->conn = @mysql_connect(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS);
}

if (!$this->conn) {
$this->logger->addQuery('', $this->error(), $this->errno());
return false;
}

if($selectdb != false){
if (!mysql_select_db(XOOPS_DB_NAME)) {
$this->logger->addQuery('', $this->error(), $this->errno());
return false;
}
}
mysql_query('SET character_set_results="utf8"');
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET NAMES 'utf8'");
return true;
}

I haven't encounter any encoding problem so far. Probably I will experiment a bit with mysql versions, probably something change between 4.1.x and 5.0.x
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!