Help Here Please

Started on the old forum in March 2008 · view the original in the archive · old links redirect here

7 replies · 647 views · started 18 years ago · 1 min read

4 participants
SpiderWap Lead · 622 posts #1

Ok, what i've done...

Added this just under my logo on "main"

///////////////////////////////////////////////////
  $daytm = 7*60;

  $reptime = time() - $daytm;

  $rminfo = mysql_fetch_array (mysql_query("SELECT id, name, ficon, fmsg FROM ibwf_users WHERE reputation>='50' AND ficon!='' AND fmsg!='' AND lastact>'".$reptime."' ORDER BY RAND() LIMIT 1"));

  //if(isbanned($rminfo[0]) $rminfo[0] = 0;

  if($rminfo[0]>0)

  {

    mysql_query("UPDATE ibwf_users SET ruse=ruse+1 WHERE id='".$rminfo[0]."' LIMIT 1");

    echo "<img src=\"$rminfo[2]\" alt=\"RI\"/><a href=\"index.php?action=viewuser&sid=$sid&who=$rminfo[0]\"> $rminfo[1]</a> (".htmlspecialchars($rminfo[3]).")

";

}

///////////////////////////////////////////////////

Added this in "viewuser"

  $nopl = mysql_fetch_array(mysql_query("SELECT reputation FROM ibwf_users WHERE id='".$who."'"));

  echo "Rep. Power: [b]$nopl[0][/b]
";

  $nopl = mysql_fetch_array(mysql_query("SELECT ruse FROM ibwf_users WHERE id='".$who."'"));

  echo "Rep. Usefulness: [b]$nopl[0][/b]
";

And uploaded ricon.php file and insert the sqls but its not showing. why? did i perhaps miss something?

mcKeny Developer · 130 posts #2

mysql_query("UPDATE ibwf_users SET ruse=ruse+1 WHERE id='".$rminfo[0 ]."' LIMIT 1");

if you use mysql_error you would of seen that error... .

R.M.C

PHP Adovocate B)

rukiya Lead · 569 posts #3

Ok, what i've done...

Added this just under my logo on "main"

///////////////////////////////////////////////////
  $daytm = 7*60;

  $reptime = time() - $daytm;

  $rminfo = mysql_fetch_array (mysql_query("SELECT id, name, ficon, fmsg FROM ibwf_users WHERE reputation>='50' AND ficon!='' AND fmsg!='' AND lastact>'".$reptime."' ORDER BY RAND() LIMIT 1"));

  //if(isbanned($rminfo[0]) $rminfo[0] = 0;

  if($rminfo[0]>0)

  {

    mysql_query("UPDATE ibwf_users SET ruse=ruse+1 WHERE id='".$rminfo[0]."' LIMIT 1");

    echo "<img src=\"$rminfo[2]\" alt=\"RI\"/><a href=\"index.php?action=viewuser&sid=$sid&who=$rminfo[0]\"> $rminfo[1]</a> (".htmlspecialchars($rminfo[3]).")

";

}

///////////////////////////////////////////////////

Added this in "viewuser"

  $nopl = mysql_fetch_array(mysql_query("SELECT reputation FROM ibwf_users WHERE id='".$who."'"));

  echo "Rep. Power: $nopl[0]
";

  $nopl = mysql_fetch_array(mysql_query("SELECT ruse FROM ibwf_users WHERE id='".$who."'"));

  echo "Rep. Usefulness: $nopl[0]
";

And uploaded ricon.php file and insert the sqls but its not showing. why? did i perhaps miss something?

mine is little different from the original lavascript codes and it works ok its here http://bdfun.co.cc/wap

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close