Hi!
This is my code...
<HTML>
<HEAD>
<?
$db = mysql_connect();
$databas = mysql_select_db("filmer");
$dvd = "SELECT * FROM dvd WHERE status_farg='red' ORDER BY titel";
$resultatdvd = mysql_query($dvd);
?>
</HEAD>
<BODY>
<TABLE CELLSPACING="0" CELLPADDING="0">
<?
while ($col = mysql_fetch_row($resultatdvd))
echo "<TR>
<TD TITLE=\"$col[8]\"><A HREF=\"filminfo.php?id=$col[0]\" TARGET=\"page\">$col[1]</A></TD>
</TR>";
?>
</TABLE>
</BODY>
</HTML>
My problem is that if no record with status_farg='red' is found I would like it to say something like "No record found".
I have tried to solve it for some time now but I can not make it work. 😕
It is probably very simple to do, but I seriously need some help 🙂
Thanks for all help and I am sorry if my english is like crap but I hope you all understand me 🙂