################################ # Version 1.0 [c] 2016 Laurent # ################################ //Connection à mysql et sélection de la base de données $connection = mysql_connect("localhost:3306","laurent","sdCd93_5") or die(ERR_CNX . mysql_error()); mysql_select_db("boutsendesign", $connection)or die("Erreur_db" . mysql_error()); ?> $iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod"); $iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad"); $Android = stripos($_SERVER['HTTP_USER_AGENT'],"Android"); $webOS = stripos($_SERVER['HTTP_USER_AGENT'],"webOS"); if(!empty($iPhone) OR !empty($Android)) { $tel = "1";//echo "iPhone"; } else { $tel = "0";//echo "iPhone"; } ?>