Was sollen eigentlich die Klammern bewirken?
in "<a href=\"eingabe.php?catid={$daten['catid']}&
PHP-Code:
{$daten['catid']}
{$daten['catid']}
$anz_reihen =mysql_num_rows($select);
<?php
$verb = mysql_connect($host,$user,$password);
if(!$verb)
die ("Keine Verbindung zu MySQL");
mysql_select_db($database,$verb)or die ("Keine Verbindung zur Datenbank \"$database\": ".mysql_error() );
if(isset($_GET['zeige']))
$select=mysql_query("select * from $table where catid=$_GET[catid]",$verb);
$anz_reihen = mysql_num_rows($select);
if ( empty($anz_reihen))
die ("<strong><center>Kein Eintrag vorhanden</strong> "/*.mysql_error()*/);
while ($daten = mysql_fetch_array($select)) {
echo "<TABLE width=\"300\" border=\"1\" cellpadding=\"1\" cellspacing=\"0\" align=\"center\" valign=\"center\" bordercolor=\"#000066\" bgcolor=#ffffff>
<tr><td align=\"middle\" width=\"100\"><a href=\"artikel.php?id=$daten[id]\" style=\"text-decoration: none;\"><font face=Verdana color=#000099 size=1> $daten[username]</font></a></td>
<td align=\"middle\" width=\"200\" height=\"30\"><font face=arial size=2><font face=arial size=1>
Eingetragen am: $daten[heute]</font><b><br> $daten[beschreibung] </b></font></td>
</tr>
<br>
</table>\n\n";
}
?>
if($anz_reihen == 0)
Kommentar