Before I get to what i'm trying to do, I must mention, this is for a PHPNuke Moudle v7.4. I don't know how many people can help me because of that but if you think you can please help as I am completly lost.
I'm trying to list DB results in a table. The DB name is nuke_team, the feilds are $uname, $gamertag, $team_rank, $team_num, $origin. Username, Gamertag, Rank, Number, Origin.
Warning: Wrong parameter count for mysql_num_rows() in /home/forzawor/public_html/modules/fw_team/index.php on line 14
<?php
if (!eregi("modules.php", $PHP_SELF)){
die ("You can't access this rows directly...");
}
$index = 1;
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
OpenTable();
echo "<center><table><tr><td width=100 bgcolor=#EAEAEA>Member</td><td width=100 bgcolor=#EAEAEA>Gamertag</td><td width=100 bgcolor=#EAEAEA>Rank</td><td width=50 bgcolor=#EAEAEA>Number</td><td width=100 bgcolor=#EAEAEA>Origin</td></tr></table> <br>" ;
$resultpersons = sql_query("SELECT uname gamertag team_rank team_num origin
FROM ".$prefix."_team", $dbi);
for ($m=0; $m <mysql_num_rows($resultpersons,$res, $dbi); $m++)
list($uname, $gamertag, $team_rank, $team_num, $origin) = sql_fetch_row(&$res, $nr, $resulpersons, $dbi);
echo "$uname, $gamertag, $team_rank, $team_num, $origin ";
CloseTable();
See the script in action
Line 14 is for ($m=0; $m <mysql_num_rows($resultpersons,$res, $dbi); $m++)
Any help is greeeaaatly appreciated since this has been driving me nuts