// on se connecte à MySQL
$db = mysql_connect('p3plcpnl0541.prod.phx3.secureserver.net', 'bcd2017', 'Vq2bz47@');
// on sélectionne la base
mysql_select_db('bcd2017',$db);
// on crée la requête SQL
$sql = 'SELECT * FROM coupdecoeur ORDER BY id DESC LIMIT 0,1';
$sq2 = 'SELECT * FROM evenement ORDER BY id DESC LIMIT 0,1';
$sq3 = 'SELECT * FROM focus ORDER BY id DESC LIMIT 0,1';
$sq4 = 'SELECT * FROM ilsnousfontavancer ORDER BY id DESC LIMIT 0,1';
$sq5 = 'SELECT * FROM noselites ORDER BY id DESC LIMIT 0,1';
// on envoie la requête
$req = mysql_query($sql) or die('Erreur SQL !
'.$sql.'
'.mysql_error());
$req2 = mysql_query($sq2) or die('Erreur SQL !
'.$sq2.'
'.mysql_error());
$req3 = mysql_query($sq3) or die('Erreur SQL !
'.$sq3.'
'.mysql_error());
$req4 = mysql_query($sq4) or die('Erreur SQL !
'.$sq4.'
'.mysql_error());
$req5 = mysql_query($sq5) or die('Erreur SQL !
'.$sq5.'
'.mysql_error());
// on fait une boucle qui va faire un tour pour chaque enregistrement
$titre_page = "BCD Label - Opinions";
include("index_bcd2016_header.php");
?>