| | |
need put banner to my account table on PTC site
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 5
Reputation:
Solved Threads: 0
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:
thank you guys
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> <? echo SITE_URL."index.php?ref=".$row["username"]; ?></td>
</tr>
<tr>
<th width="190">Username</th>
<td> <? echo $row["username"]; ?></td>
</tr>
<tr>
<th width="190">Account</th>
<td> <? echo $row["account"]; ?></td>
</tr>
<tr>
<th width="190">Ads Viewed</th>
<td> <? echo $row["visits"]; ?></td>
</tr>
<tr>
<th>Referrals</th>
<td> <? echo $row["referals"]; ?></td>
</tr>
<tr>
<th>Referral Visits</th>
<td> <? echo $row["referalvisits"]; ?></td>
</tr>
<tr>
<th>Balance</th>
<td> $ <? echo $row["money"]; ?></td>
</tr>
<tr>
<th>Total Paid</th>
<td> $ <? echo $row["paid"]; ?></td>
</tr>
</table> <br /> <br /> <br /> <br /> <br /> <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
•
•
Join Date: Jun 2008
Posts: 62
Reputation:
Solved Threads: 3
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
I don't know if this is what you wanted or not, but I would be willing to help.
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)
<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.
There are alot of people smarter than me, BUT at least I try to be of some help. Of coarse I'm not perfect, I need help too.
![]() |
Other Threads in the PHP Forum
- Previous Thread: PHP Issue
- Next Thread: PHP session problem
| Thread Tools | Search this Thread |
ajax apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error errors execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google href htaccess html image include insert integration ip java javasciptvalidation javascript joomla keywords limit link login mail matching menu mlm multiple mysql oop paypal pdf php phpincludeissue problem query radio random recursion recursive regex remote script search server sessions shot sms soap source space sql subscription syntax system table tag tutorial tutorials update upload url validator variable vbulletin video web xml youtube





