Mailinglisten-Archive |
Frank Heimlich schrieb:
>
> $sql="select * from $ort;";
> echo '<TABLE BORDER=1 CELLSPACING=3 CELLPADDING=1 WIDTH=60>';
> echo '<tr><td><img src="logo.gif" width="120" height="75"></td></tr>';
> $result=mysql_query($sql, $conn);
> while ($row = mysql_fetch_array($result)) {
// eingefuegt von mir
$aktueller_ort = $row["ort"];
$bgcolor = "#0000BF";
if ($ort == "$aktueller_ort") $bgcolor = "#8DC8EB";
// geaendert von mir
echo '<tr><TD BGCOLOR="$bgcolor"><P><a
> href="haupt.php3?ort=';
> echo $row["ort"];
> echo '&tkey=';
> echo $tkey;
> echo '&par=1';
> echo '" target="detail">';
> echo $row["ort"];
> echo '</a>';
> echo '<br><br></TD></tr>';
> }
> ?>
> </table>
>
War das so gemeint?
Ich verstehe nur die Abfrage nicht ganz.
Du fragst nach allem aus Tabelle $ort und willst dann unterschiedliche
Orte ausgeben?
Egal, aber mein Prinzip sollte klappen.
Gruß Michael
--
--------------------------------------------------------
Michael Stahmann, web-xact.de <website-development>
http://www.web-xact.de mailto:info_(at)_web-xact.de
Burchardstr. 10, D-28217 Bremen, Tel/Fax 0421-3887750/51
--------------------------------------------------------
Sinnloser Bildschirmschoner: http://schlammpeitzger.de
php::bar PHP Wiki - Listenarchive