Hi,
I quite often use :
PHP Code:
$sql = "SELECT page_id,page_type,cat_cd FROM pages WHERE assigned = 'n' ";
$result = mysql_query($sql) or die("could not find SITE: $site_id". mysql_error());
$num = mysql_num_rows($result);
if ($num > 0 ) {
I just noticed that the Manual says "mysql_num_rows - This extension is deprecated as of PHP 5.5.0"
I write php in procedural style rather than OOP.
What should I use instead of
$num = mysql_num_rows($result);
Thanks
.
__________________
If you want to attract and keep more clients, then offer great
customer support.
Support-Focus.com. automates the process and gives you a
trust seal to place on your website.
I recommend that you at least take
the 30 day free trial.