ive been trying this for a while and still cannot get it to work. I am trying to put $rows = mysql_num_rows($sql) inside a while loop...
Basically
$num_rows = array();
$query = mysql_query("select * from sometable");
while ($results = mysql_fetch_array($query)) {
$sql = mysql_query("select * from somefield where somefield1 = somefield_query");
$rows = mysql_num_rows($sql);
$num_rows[] = $rows;
}
now when i do print_r($num_rows); the array is empty... so any help on getting this to work would be muchly appreciated


LinkBack URL
About LinkBacks







Reply With Quote

