Rev 5 |
Details |
Compare with Previous |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
5 |
florian |
1 |
<?php
|
|
|
2 |
include_once 'configuration/baz_config.inc.php'; //fichier de configuration de Bazar
|
|
|
3 |
|
|
|
4 |
$requete = 'SELECT bn_id_nature, bn_label_nature FROM bazar_nature' ;
|
|
|
5 |
$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete) ;
|
|
|
6 |
if (DB::isError($resultat)) {
|
|
|
7 |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
|
|
|
8 |
}
|
|
|
9 |
echo '<link rel="alternate" type="application/rss+xml" title="'.BAZ_TOUTES_LES_ANNONCES.'" href="http://'.$_SERVER['HTTP_HOST'].'/bazar/bazarRSS.php" />'."\n";
|
|
|
10 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
|
|
11 |
echo '<link rel="alternate" type="application/rss+xml" title="'.$ligne['bn_label_nature'].'" href="http://'.$_SERVER['HTTP_HOST'].'/bazar/bazarRSS.php?annonce='.$ligne['bn_label_nature'].'" />'."\n";
|
|
|
12 |
}
|
|
|
13 |
|
|
|
14 |
?>
|