I am developing a game intergrated into php-nuke and am having trouble with a block i am trying to get to work.
I want to display user specific information within a block.
I am using the following code but i know thw sql query will only check for the 1st row in the table.
-----------------------------------------------------------------------------------
if (eregi("block-Ruler.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $db, $user, $cookie;
// query to get user info
$sql = "SELECT * FROM nuke_users";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum