jo, so hatte ich das auch schon ( if ($inhalt == 0) { ... ) aba hat nicht funktionniert. könnte auch noch an was anderem liegen? hier mal der janze script:
include('table.inc.php');
if ($submit) {
echo"
<table border="0">
<tr><td width="200" height="100" valign="top" colspan="2"><p>Folgende Titel wurden gefunden</p></td></tr>
";
while ($result = mysql_fetch_array($search_send)){
$inhalt = count($result);
if($inhalt == 0){echo"fehler bei suche";} else {
echo"
<tr><td width="120"><p>ID:</p></td><td><p>$result[0]</p></td></tr>
<tr><td width="120"><p>Filmname:</p></td><td><p>$result[1]</p></td></tr>
<tr><td width="120"><p>Länge:</p></td><td><p>$result[2]</p></td></tr>
<tr><td width="120"><p>1. Sprache:</p></td><td><p>$result[3]</p></td></tr>
<tr><td width="120"><p>2. Sprach:</p></td><td><p>$result[4]</p></td></tr>
<tr><td width="120"><p>Tonquallität:</p></td><td><p>$result[5]</p></td></tr>
<tr><td width="120"><p>Bildquallität:</p></td><td><p>$result[6]</p></td></tr>
<tr><td width="120"><p>Medienanzahl:</p></td><td><p>$result[7]</p></td></tr>
<tr><td width="120"><p>Medientyp:</p></td><td><p>$result[8]</p></td></tr>
<tr><td width="120"><p>Bemerkung:</p></td><td><p>$result[9]</p></td></tr>
<tr><td width="120"><p>1. Link:</p></td><td><p>$result[10]</p></td></tr>
<tr><td width="120" height="100" valign="top"><p>2. Link:</p></td><td height="100" valign="top"><p>$result[11]</p></td></tr>
";}
}
echo"</table>";
}
else {
echo"
<form method="post" action="search.php">
<p>suche</p><input type="text" name="name" values="suche" size="20">
<input type="submit" name="submit" value="senden">
</form>
";}
?>