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";
}
}
mysql_xxx()functions are considered obsolete and insecure. It is recommended to switch to using the newermysqli_xxx()functions, or the PDO library instead. See stackoverflow.com/questions/12859942/…