How to tell if a php array is empty? i tried different methods but it never gets to echo "no content";
while($row = mysql_fetch_array($result))
{
if(count($row['link']))
{
echo '<a id="link_' . $row['Id'] . '" href="' . $row['link'] . '" data="/short_info.php?id=' . $row['Id'] . '/">' . $row['title'] . '</a><div class="in...
}
else
{
echo "no content";
}
}