Jump to content


Photo

2 problems.


  • Please log in to reply
1 reply to this topic

#1 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 19 July 2006 - 06:23 PM

Hi,
I've got a view profile script, there is two problems I am having. One of them is this:
Reputation: Array.

And the other problem is I wanted to check the accounts database to see
if the member wants other members to email them, if they Do I wanted the
email icon and link to apear, However It shows the icon at the top of the page
which is the start of the script, :\ confused...

my code is:
include "../db.php";
		$top = mysql_query("SELECT rank,rep,mem_mail,id FROM accounts WHERE user='$act'");
			while( $vdat = mysql_fetch_array($top)) {
			$usrank = $vdat[0];
			$usrep = $vdat[1];
			$usrmail = $vdat[2];
			$actid = $vdat[3];
				if( $usrmail == 1 ){
				$mem_mail = "<a target=frame href=../Email.php?id='.$actid.'><img src=../images/email.PNG></a>";
				}
				else
				{
				$mem_mail = "";
				}
			}
		
	$gx = mysql_query("SELECT * FROM profile WHERE user='$act'");
		while( $bdat = mysql_fetch_row($gx))
			{
		echo '<font face="Verdana" size="1" color="#54A800">
          Reputation:</font></b></td>
          <td width="50%" height="20">
          <font face="Verdana" size="1" color="#FFFFFF">'.$usrep.'</font>';
          
         }


#2 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 19 July 2006 - 06:36 PM

Update: I realised the array i forgot "MYSQL_NUM" although the otherone is a baffle.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users