include ("cnEditors.php");
if (!$mysql_link = mysql_connect ($MM_cnEditors_HOSTNAME,$MM_cnEditors_USERNAME,$MM_cnEditors_PASSWORD)):
exit('Erreur MySQL n°'.mysql_errno().' : '.mysql_error());
endif;
if (!mysql_select_db($MM_cnEditors_DATABASE,$mysql_link)):
exit('Erreur MySQL n°'.mysql_errno().' : '.mysql_error());
endif;
?>
Destinations
Afficher toutes
les destinations
|
$ssel="select * from editor_destinations order by libelle asc";
$sreq=mysql_query($ssel) or die(mysql_error().$ssel);
$col=0;
while ( $laliste=mysql_fetch_array($sreq) )
{
if ( $col == 0 ) { echo ""; }
echo " | ";
$col++;
if ( $col == 1 )
{ echo "
"; $col=0; }
}
?>
|
if ( isset($_GET['cle']) )
{
$tel="select * from editor_livre";
if ( $_GET['cle'] != "tous" )
{ $tel .=" where livre_destination_id=".$_GET['cle']; }
$rel=mysql_query($tel) or die(mysql_error().$tel."
recherche livre");
while ( $livre=mysql_fetch_array($rel) )
{
echo "
";
}
} // fin affichage des livres
?>