Changeset 15 for trunk/admin/admin.php


Ignore:
Timestamp:
Feb 17, 2010, 7:03:22 PM (15 years ago)
Author:
roby
Message:

Gestione charset (da Tolaini)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r2 r15  
    124124                $dbi=mysql_connect($dbhost, $dbuname, $dbpass) or die("Connessione non riuscita: " . mysql_error());
    125125                mysql_select_db($dbname)or die("Connessione non riuscita:" . mysql_error());
     126                mysql_set_charset('utf8', $dbi);
    126127//---10/05/2009  gestione consultazione predefinita
    127128                $res_config = mysql_query("select * from ".$prefix."_config ",$dbi);
     
    200201        }
    201202}else{
    202 #$dbi=mysql_connect($dbhost, $dbuname, $dbpass) or die("Connessione non riuscita: " . mysql_error());
    203 
    204 #mysql_select_db($dbname)or die("Connessione non riuscita:" . mysql_error());
    205203$_SESSION['dbi']=$dbi;
    206204
Note: See TracChangeset for help on using the changeset viewer.