can u use an array for the select part to retrieve data from mysql.
egi
$stats SELECT (array here insted of row,row,row,) FROM ......
i know u can use SELECT * FROM 'table' nothing displays
what argument should i use
and how could i put this into a nested function or what could i use
here is a snipet of my code.....
<?php
require "ro.conf.php";
global $statsD;
$db = mysql_connect ($host,$login,$password);
mysql_select_db ($base,$db);
$stats = "SELECT mem_count,total_topics,total_replies FROM ibf_stats WHERE mem_count ";
$statsR = mysql_query ($stats,$db);
$statsD =mysql_fetch_object($statsR);
mysql_free_result($statsR);
function stats_rep($statsD) {
echo $statsD->total_replies;
}
function stats_mem($statsD) {
echo $statsD->mem_count;
}
function stats_topics($statsD) {
echo $statsD->total_topics;
}
?>
all the above funsctions are being called by another file