Skus si pozriet tieto temy:
Kód:
http://phpbbsk.com/topic3178.html
Kód:
http://phpbbsk.com/topic3152.html?highlight=
Alebo skus toto to:
najdy v tento subor /db/mysql4.php
tam najdi toto:
Citácia:
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->server = $sqlserver;
$this->dbname = $database;
$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password);
if( $this->db_connect_id )
{
if( $database != "" )
{
$this->dbname = $database;
$dbselect = mysql_select_db($this->dbname);
if( !$dbselect )
{
mysql_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
}
return $this->db_connect_id;
}
else
{
return false;
}
}
A za to co je cerveneym pridaj toto:
Kód:
@mysql_query ("SET NAMES CP1250");
alebo
Kód:
@mysql_query("SET NAMES utf8");
Podla toho ake mas kodovanie DB a v suboroch.