Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /public_html/core.php on line 578
that is this line
while ($narys=mysql_fetch_array($nariai))
it is in this part
/////////////////////////////////Get the memberlist//////////////////////////
function membersget($nick,$pass,$whattoget,$page)
{
// if ($page==1) $pagest=0; else $pagest=$page*$page+1;
$page=$page-1;
if (!$page==0) $pagest=$page*5; else $pagest=0;
if ($whattoget=="id") $nariai=mysql_query("SELECT name,pluses FROM users ORDER BY id DESC LIMIT ".$pagest.", 5");
if ($whattoget=="name") $nariai=mysql_query("SELECT name,pluses FROM users ORDER BY name LIMIT ".$pagest.", 5");
while ($narys=mysql_fetch_array($nariai))
{
$postu=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM posts WHERE postedby='".$narys[0]."'"));
echo "<a href=\"index.php?action=viewuser&nick=$nick&am p;pass=$pass&who=$narys[0]\">Name: $narys[0], Posts: $postu[0], Pluses: $narys[1]</a>
";
};
};
/////////////////////////////////////////////////////////////////////////////
and only one more error it is with private messages,when go on
index.php?action=viewuser&nick=SOMENICK&pass=SOMEP ASS&who=SOMENICK
and click on send PM goes to this link index.php?action=sendpm&nick=bb&pass=bb&who=
without SOMENICK then doesn want to send pm!,
it is like this on every version tried,it must be something with mysql or what
please helpppp!!!!!!!
that is this line
while ($narys=mysql_fetch_array($nariai))
it is in this part
/////////////////////////////////Get the memberlist//////////////////////////
function membersget($nick,$pass,$whattoget,$page)
{
// if ($page==1) $pagest=0; else $pagest=$page*$page+1;
$page=$page-1;
if (!$page==0) $pagest=$page*5; else $pagest=0;
if ($whattoget=="id") $nariai=mysql_query("SELECT name,pluses FROM users ORDER BY id DESC LIMIT ".$pagest.", 5");
if ($whattoget=="name") $nariai=mysql_query("SELECT name,pluses FROM users ORDER BY name LIMIT ".$pagest.", 5");
while ($narys=mysql_fetch_array($nariai))
{
$postu=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM posts WHERE postedby='".$narys[0]."'"));
echo "<a href=\"index.php?action=viewuser&nick=$nick&am p;pass=$pass&who=$narys[0]\">Name: $narys[0], Posts: $postu[0], Pluses: $narys[1]</a>
";
};
};
/////////////////////////////////////////////////////////////////////////////
and only one more error it is with private messages,when go on
index.php?action=viewuser&nick=SOMENICK&pass=SOMEP ASS&who=SOMENICK
and click on send PM goes to this link index.php?action=sendpm&nick=bb&pass=bb&who=
without SOMENICK then doesn want to send pm!,
it is like this on every version tried,it must be something with mysql or what
please helpppp!!!!!!!



Comment