Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/clients/d2a61cbf677097934ec5c242a1983c5a/htdocs/Telephone__Shop__Nouveaux_Abonnements.php:1) in /home/clients/d2a61cbf677097934ec5c242a1983c5a/htdocs/Telephone__Shop__Nouveaux_Abonnements.php on line 2
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/clients/d2a61cbf677097934ec5c242a1983c5a/htdocs/Telephone__Shop__Nouveaux_Abonnements.php:1) in /home/clients/d2a61cbf677097934ec5c242a1983c5a/htdocs/Telephone__Shop__Nouveaux_Abonnements.php on line 2
function Connexion() {
$error=1;
$base_id=0;
$bd=0;
$server="5y2mg.myd.sharedbox.com";
$user="5y2mg_Itnet";
$pwd='itnet%plus18';
$bdx="5y2mg_itnet";
$server=rtrim($server) ;
$user=rtrim($user) ;
$pwd=rtrim($pwd) ;
if ($base_idx = new mysqli($server,$user,$pwd,$bdx))
{$base_id=$base_idx;$bd=$bdx;}
// $req="SELECT * FROM `Portfolio` where type = '1' ORDER BY `Portfolio`.`ordre` ASC ";
//$ress = mysqli_query($base_idx,$req);
//var_dump($base_idx);
if(@mysqli_select_db($bd,$base_id)){$error=0;}
return $error;
}
//****************************************************
function Execute($base_id,$req){
$result=@mysqli_query($base_id,$req);
//$nbr_result=mysql_num_rows($result);
return $result;
}
function my_htmlentities($val, $convert_single_quotes = false)
{
if ($val == "")
{
return "";
}
$val = str_replace( " ", " ", $val );
//Remove sneaky spaces
// $val = str_replace( chr(0xCA), "", $val );
$val = str_replace( "&" , "&" , $val );
$val = str_replace( "" , "-->" , $val );
$val = preg_replace( "/