Warning: mysql_fetch_row(): supplied argument is not a valid mysql result resourse in /funcs.php on line 22,
function get_ads_count()
{
global $cat_fields, $table_ads, $ct, $page, $adsonpage;
$where_string=get_where_string();
$sql_query="select count(idnum) from $table_ads where
$where_string ";
$sql_res=mysql_query("$sql_query");
$
$row=mysql_fetch_row($sql_res); // line22
$count=$row[0];
return $count;
}
Warning: mysql_fetch_row(): supplied argument is not a valid mysql result resourse in /funcs.php on line 175,
function get_cat_count($ct)
{
global $cat_fields, $tables_ads, $page, $adsonpage;
$sql_query="select count(idnum) from $table_ads where
catname='ct'and visible=1";
$sql_res=mysql_query("$sql_query");
$row=mysql_fetch_row($sql_res); // line 172
$count=$row[0];
return $count;
}
function get_date_update($ct)
{
global $cat_fields, $table_ads, $page, $adsonpage;
$sql_query="select time from $table_ads where
catname='$ct' and visible=1 order by time desc ";
$sql_res=mysql_query("$sql_query");
$row=mysql_fetch_row($sql_res); // line 185
$time1=$row[0];
$date_update=get_short_date($time1);
if ($time1==0) {$date_update="";}
return $date_update;
}
?>
Warning: mysql_fetch_row(): supplied argument is not a valid mysql result resourse in /funcs.php on line 185,
Thats it, unless i've missed something.