was is daran falsch??
$result = $db->query("SELECT * from charts WHERE ID=1 AND 2 AND 3 AND 4 ORDER BY Position");
while( $row = $db->fetch_array($result) ) {
if ($row['Position'] ==! "0") { //Wenn der Film die Position 0 hat, wird er nicht angezeigt!
//Anfang Tendenz
if ($row['Position']>$row['Last_Week']) $tendenz="down.gif";
if ($row['Position']<$row['Last_Week']) $tendenz="up.gif";
if ($row['Position']==$row['Last_Week']) $tendenz="unchanged.gif";
if ($row['Last_Week']=="0") $tendenz="up.gif";
//Ende Tendenz
//Datum auf Deutsches Datum umwandeln
$date = explode("-", $row['Entry']);
$date = $date['2'].".".$date['1'].".".$date['0'];
//Ende Datum modifikation
// Für Template umwandeln
$ID = $row['ID'];
$Interpret = $row['Interpret'];
$Title = $row['Title'];
$Position = $row['Position'];
$Last_Week = $row['Last_Week'];
$Genre = $row['Genre'];
$Weeks = $row['Weeks'];
//Ende für Template umwandeln
eval ("\$show_bit = \"".$tpl->get("charts_show_bit")."\";");
}//endif
}//endwhile
$result = $db->query("SELECT * from charts WHERE ID=1 AND 2 AND 3 AND 4 ORDER BY Position");
while( $row = $db->fetch_array($result) ) {
if ($row['Position'] ==! "0") { //Wenn der Film die Position 0 hat, wird er nicht angezeigt!
//Anfang Tendenz
if ($row['Position']>$row['Last_Week']) $tendenz="down.gif";
if ($row['Position']<$row['Last_Week']) $tendenz="up.gif";
if ($row['Position']==$row['Last_Week']) $tendenz="unchanged.gif";
if ($row['Last_Week']=="0") $tendenz="up.gif";
//Ende Tendenz
//Datum auf Deutsches Datum umwandeln
$date = explode("-", $row['Entry']);
$date = $date['2'].".".$date['1'].".".$date['0'];
//Ende Datum modifikation
// Für Template umwandeln
$ID = $row['ID'];
$Interpret = $row['Interpret'];
$Title = $row['Title'];
$Position = $row['Position'];
$Last_Week = $row['Last_Week'];
$Genre = $row['Genre'];
$Weeks = $row['Weeks'];
//Ende für Template umwandeln
eval ("\$show_bit = \"".$tpl->get("charts_show_bit")."\";");
}//endif
}//endwhile
Kommentar