if (MySQL table er tom){ echo "<p>ingen indlæg</p>"; } else { echo ""; }
<?php Det her virker ikke --> $query = mysql_query(SELECT * FROM gaestebog); $rows = mysql_num_rows($query) if ($rows <= 0){ echo "<p>Ingen indlæg</p>"; } else { echo ""; } ?>
<?php $result = mysql_query("SELECT * FROM gaestebog"); $rows = mysql_num_rows($result); if ($rows <= 0){ echo "<p style=\"color:#FF0000;\">Ingen indlæg</p>"; } else { echo ""; } ?>