Changeset 15 for trunk/admin


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

Gestione charset (da Tolaini)

Location:
trunk/admin
Files:
2 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
  • trunk/admin/index.php

    r2 r15  
    1010                $dbi=mysql_connect($dbhost, $dbuname, $dbpass) or die("Connessione non riuscita: " . mysql_error());
    1111                mysql_select_db($dbname)or die("Connessione non riuscita:" . mysql_error());
     12                mysql_set_charset('utf8', $dbi);
    1213//---10/05/2009  gestione consultazione predefinita
    1314//if (!isset($_SESSION['id_comune'])){
Note: See TracChangeset for help on using the changeset viewer.