$count) { echo "No more records
\n" ; $page = ceil ($count / $per_page ); } else { if ($count > 0) { $ref = mysql_real_escape_string($_GET["ref"]); $cat = "select cat_name from ecn_category where cat_id = '$ref'"; $catresult = mysql_query($cat); $catrow = mysql_fetch_assoc($catresult); $title = "Headlines for $catrow[cat_name]"; } else { $title = "Sorry, there are no stories to display in this category."; echo "ref=$_GET[ref]"; } } } else { $title = 'Error: You cannot access this page directly.'; } ?> <? echo "$title"; ?>
Access denied for user ''@'localhost' (using password: NO)