i have this code and for some reason its not displaying any results. Its giving me and error of Wrong parameter count for mysql_result(). Can anyone please help me out. Thank you in advance!
php:
elseif($command=="viewusers"){
$sql = "SELECT * FROM usage";
//echo $sql;
$result = mysql_query($sql) or die(mysql_error());
echo "<table>";
if (mysql_num_rows($result) > 0) {
for ($j = 0; $j<mysql_num_rows($result); $j++) {
echo "<tr>";
echo "<td>";
mysql_result($result, $j);
echo "</td>";
echo "</tr>";
}
}
echo "</table>";
}
?>