Ok. I'm doing the best I can but I'm having trouble finding which code to put in. I keep getting SQL errors. Which block of code do I use from each file?
I'm assuming this is the correct block in statspal
Quote:
<tr>
<td class="{$Style['tddetails']}" align="left"><span class="{$Style['small']}">{$Globals['pp_lang']['activeads']}</span></td>
<td class="{$Style['tddetails']}" align="right"><span class="{$Style['small']}">$totalproducts</span></td>
</tr>
|
And this the correct querry in index.php?
Quote:
$query = "SELECT SUM(views), count(*) FROM {$Globals['pp_db_prefix']}products WHERE approved=1";
$totalv = ppmysql_query($query,$link);
list( $totalviews, $totalproducts ) = mysql_fetch_row($totalv);
ppmysql_free_result($totalv);
|
With
Quote:
|
$totalproducts = number_format( $totalproducts );
|
But how do I query it on an index page independant of the classifieds?
What files do I need to include?
Thanks again.