Call to funtion

Started on the old forum in February 2010 · view the original in the archive · old links redirect here

5 replies · 425 views · started 16 years ago · 1 min read

2 participants
bOrN2pwn Developer · 230 posts #1

I seem to have a problem....... Im calling a user from the database but it dosnt display that users nick only its ID how do I fix this....... I wana see the nick not the ID

Heres my snippet im useing

$unick = getnick_uid($rela[2]);
  $lnk = "<a href=\"index.php?action=viewuser&who=$rela[2]&sid=$sid\">$unick</a>";
  echo "Relation: <b>Married to $lnk</b> <br/>";

This part here shows the ID how do I get it to show the nick instead.......

sid=$sid\">$rela[2]</a>";

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

riderz Lead · 975 posts #2

murshid this is ur last warning for posting crap ull be baned next time u are warned u not staff to say topic closed we will say so


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

riderz Lead · 975 posts #4

try to look at this code m8

$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'"));
  if($couple[0]=='1')
  {

  echo "<b>COUPLES:</b><br/>";
  $unick = getnick_uid($couple[2]);

  echo "<b>$whonick</b>is married with  $unick <br/>";
  }
$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$who."'"));
if($couple[0]=='1')
  {

  echo "<b>COUPLES:</b><br/>";
  $nick = getnick_uid($couple[1]);

  echo "<b>$whonick</b> is married with $nick <br/>";
  }

mabe it will help u


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

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