943,829 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 637
  • PHP RSS
Nov 26th, 2008
0

need put banner to my account table on PTC site

Expand Post »
hello guys i need put banner on 'my account table'. banner should included reflink of member or user who's accessing this page.

here is banner picture:
<img src="http://i35.tinypic.com/349ciza.jpg" border="0">

and here is all php code of my account table:

<?php include_once('header.php');
if(isset($_COOKIE["usNick"]) && isset($_COOKIE["usPass"])){ 
		$user = $_COOKIE["usNick"];
		$myDb->connect();
			$sql = "SELECT * FROM yob_users WHERE username='$user'";
			$result = mysql_query($sql);        
			$row = mysql_fetch_array($result);
		$myDb->close();
?>
		<div id="content">
			<h2>My Account - Stats</h2>
			<table align="center" width="10%" cellspacing="0" cellpadding="0" class="table1">
/////// need put that banner here---->------->(with username or reflink of user who access this page of course)////////////				

<tr>
					<th width="190">Referral Link</th>
					<td>&nbsp;&nbsp;<? echo SITE_URL."index.php?ref=".$row["username"]; ?></td>
			       </tr>
				<tr>
					<th width="190">Username</th>
					<td>&nbsp;&nbsp;<? echo $row["username"]; ?></td>
				</tr>
				<tr>
					<th width="190">Account</th>
					<td>&nbsp;&nbsp;<? echo $row["account"]; ?></td>
				</tr>
				<tr>
					<th width="190">Ads Viewed</th>
					<td>&nbsp;&nbsp;<? echo $row["visits"]; ?></td>
				</tr>
				<tr>
					<th>Referrals</th>
					<td>&nbsp;&nbsp;<? echo $row["referals"]; ?></td>
				</tr>
				<tr>
					<th>Referral Visits</th>
					<td>&nbsp;&nbsp;<? echo $row["referalvisits"]; ?></td>
				</tr>
				<tr>
					<th>Balance</th>
					<td>&nbsp;&nbsp;$&nbsp;<? echo $row["money"]; ?></td>
				</tr>
				<tr>
					<th>Total Paid</th>
					<td>&nbsp;&nbsp;$&nbsp;<? echo $row["paid"]; ?></td>
				</tr>	
			</table>&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;<br />
<center>Your IP address is:<script language='Javascript' src='http://www.jstracker.com/ip'></script><noscript><a href='http://www.jstracker.com/' target=_blank>IP detector</a></noscript><center>

<?php include ('footer.php'); ?>
<?
}else{
	$display_error = "* You must login to access this page."; // error language
	include ('error.php');
	exit();	
}?>


thank you guys
Reputation Points: 10
Solved Threads: 0
Newbie Poster
macokovac is offline Offline
5 posts
since Nov 2008
Nov 27th, 2008
0

Re: need put banner to my account table on PTC site

no1 want reply me :/
Reputation Points: 10
Solved Threads: 0
Newbie Poster
macokovac is offline Offline
5 posts
since Nov 2008
Nov 28th, 2008
0

Re: need put banner to my account table on PTC site

What type of reflink are you meaning? I guess I don't quite understand what you mean.

Do you wan't a link like this:
http://YourDomain.com/?ref=yourusername
if so you could simply add the following to you code above
PHP Syntax (Toggle Plain Text)
  1. <tr><td colspan="2"><a href=\"<? echo SITE_URL."index.php?ref=".$row["username"]; ?>\"><img src="http://i35.tinypic.com/349ciza.jpg" border="0" alt="" /></a></td></tr>

I don't know if this is what you wanted or not, but I would be willing to help.
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
PomonaGrange is offline Offline
67 posts
since Jun 2008
Nov 28th, 2008
0

Re: need put banner to my account table on PTC site

thank you man alot but i did it myself. One more thank you!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
macokovac is offline Offline
5 posts
since Nov 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP Issue
Next Thread in PHP Forum Timeline: PHP session problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC