|
$db = "web";
$link = mysql_connect("localhost","siteweb","rpbd84");
function getShortDate($dt) {
return substr($dt,8,2).".".substr($dt,5,2);
}
$result = mysql($db,"select * from abreviations order by abreviation");
if (!$result) print mysql_error();
?>
$style = "agenda2";
while ($row = mysql_fetch_array($result)) {
if ($style=="agenda2") $style="agenda1";
else $style="agenda2";
$liendebut = $lienfin = "";
if ($row["lien"] != "") {
if (substr($row["lien"],0,3)=="www") $liendebut = "";
else $liendebut = "";
$lienfin = "";
}
print("| $liendebut".$row["abreviation"]."$lienfin | ");
print("".$row["description"]." | \n");
}
?>
Accueil RPN
|