ich hab eine tabelle mit einem Feld "alt" und nun wollte ich es nur anzeigen lassen wenn der Wert "o" innheralb von "alt" ist.
Ausgegeben wird es in einer Tabelle
Wie löst man das?
mit einer If eventuell?
da mal mein code-schnippsel
Fehlerausgabe:
Notice: Use of undefined constant o - assumed 'o' in /usr/export/www/vhosts/funnetwork/hosting/crimson007/events Original.php on line 12
Ausgegeben wird es in einer Tabelle
Wie löst man das?
mit einer If eventuell?
da mal mein code-schnippsel
PHP-Code:
<table width="100%" cellpadding="10" cellspacing="0" border="0">
<?php
$row->neualt=o;
if($row->neualt==1){
while($row=mysql_fetch_object($ergebnis)){
echo '<tr>'."\r\n";
echo '<td colspan="2" bgcolor="#F2D000" height="15px"> </td>'."\r\n";
echo '<tr>'."\r\n";
echo '<tr>'."\r\n";
echo '<td align="center">'.$row->datum.' <br> <br>
'.$row->ort.' <br> <br>
'.$row->zeit.'</td>'."\r\n";
echo '<td>'.$row->text.'</td>'."\r\n";
echo '<tr>'."\r\n";
}
}
?>
</table>
Notice: Use of undefined constant o - assumed 'o' in /usr/export/www/vhosts/funnetwork/hosting/crimson007/events Original.php on line 12
Kommentar