Code: Select all
<?php
function index_empty() {echo '<div><p>The section exists, however no pages exist here yet.</p></div>';}
while($row1 = mysql_fetch_array($cms->index))
{
echo '<div><pre>';
print_r($row1);
echo '</pre></div>';
if (empty($row1)) {index_empty();}
else if ($row1 == '') {index_empty();}
}
?>The second problem is using mysql_fetch_array more then once leaves the second use of it unable to access the first row of returned data.
...so after conquering some hard code I feel kinda lame being stuck on this.