setlocale(LC_TIME,"fr_FR");
$root_path = '/home/tnecomm/www/tne-fr';
$table_actu = 'actu_calendrier';
$ch_mail = "tne@tne.fr";
$server = 'sql1.easy-hebergement.net';
$user = 'tnecomm18';
$pass = 'dlsi50oj';
$db = 'tnecomm18';
function suppr_accents($s) {
$m="\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xd2\xd3\xd4\xd5\xd6\xd8\xf2\xf3\xf4\xf5\xf6\xf8\xc8\xc9\xca\xcb\xe8\xe9\xea\xeb\xc7\xe7\xcc\xcd\xce\xcf\xec\xed\xee\xef\xd9\xda\xdb\xdc\xf9\xfa\xfb\xfc\x9f\xff\xd1\xf1";
$s = strtr($s, $m, 'AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuYyNn');
$s = str_replace("\x8c",'OE',$s);
$s = str_replace("\x9c",'oe',$s);
$s = str_replace("\xa6",'AE',$s);
$s = str_replace("\xe6",'ae',$s);
$s = str_replace("\xdf",'ss',$s);
return $s;
}
function removespecials($s) {
return ereg_replace('[^A-Za-z\-]*','',$s);
}
?>
Warning: Undefined variable $table_actu in /public_html/tne-fr/actu/actu.php on line 10
Warning: Undefined variable $db in /public_html/tne-fr/actu/actu.php on line 12
Fatal error: Uncaught Error: Call to a member function query() on null in /public_html/tne-fr/actu/actu.php:12
Stack trace:
#0 {main}
thrown in /public_html/tne-fr/actu/actu.php on line 12