Jump to content

Implementing Top 10 Users Into Index.php


welshy123

Recommended Posts

Hey sup guys i need help Implementing top 10 users script into index.php. I got a screen shot of where it needs to go.

 

top.jpg

 

I need to Implement it so its inside the grey container as in the picture.

 

Here is the php for the top 10 users :

 

         <span style="float:right;">

        <table width="200">
        <tr><td colspan="2" align="center">TOP 10 USERS</td></tr>
        <tr><td align="left"><b>Username<b></td><td align="left"><b>Points</b></td></tr>
        <?php $i=0;
        if($num>0){
while ($i < $num) {
$username6=mysql_result($result4,$i,"username");
$points6=mysql_result($result4,$i,"points");
$i++;
echo "<tr><td>".$username6."</td><td>".$points6."</td></tr>";

 

Here is the image file for the graphic :

 

<table width="165" height="236" bgcolor="#FFFFFF" td background="images/tablebg.png" >

 

And here is the index.php :

 

<? 
session_start();
include_once"config.php";
if(isset($_POST['login'])){
$username= trim($_POST['username']);
$password = trim($_POST['password']);
if($username == NULL OR $password == NULL){
$final_report.="Please complete both fields";
}else{
$check_user_data = mysql_query("SELECT * FROM `members` WHERE `username` = '$username'") or die(mysql_error());
if(mysql_num_rows($check_user_data) == 0){
$final_report.="This username does not exist";
}else{
$get_user_data = mysql_fetch_array($check_user_data);
if($get_user_data['password'] == $password){
$start_idsess = $_SESSION['username'] = "".$get_user_data['username']."";
$start_passsess = $_SESSION['password'] = "".$get_user_data['password']."";
$final_report.="<meta http-equiv='Refresh' content='0; URL=members.php'/>";
}}}}
 if(isset($_SESSION['username']) && isset($_SESSION['password'])){ 
header("Location: members.php");
}

?> 
<?php include("includes.php");?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

  <title><?php echo $title ?> | #1 Spot for Free Paid Surveys</title>
     <link rel="shortcut icon" href="favicon.ico" >
   <link rel="icon" type="image/gif" href="animated_favicon1.gif" >
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="description" content="Get free vouchers for online stores such as Amazon, ASOS, iTunes and more. It takes a few seconds to get started. Register now to start shopping for free." />
  <link rel="stylesheet" href="style.css" type="text/css" />
   <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/script.js"></script>
    <script type="text/javascript" src="js/dimensions.min.js"></script>
    <script type="text/javascript" src="js/func.js"></script>
    <script type="text/javascript" src="js/SHA1.js"></script>
<script>var _wau = _wau || []; _wau.push(["tab", "72vlo7dmnb8j", "w12", "bottom-center"]);(function() { var s=document.createElement("script"); s.async=true; document.getElementsByTagName("head")[0].appendChild(s);})();</script>
<style> 

#logoPart { background:#000; height:90px;}

#bannerTD { width:900px; height:85px; background-color:#333; background-repeat: no-repeat;}
#bannerTD #bannerContainer { width:900px; height:325px; text-align:center;}
#bannerTD #bannerContainerCover { width:900px; height:325px; text-align:center;}
#bannerTD #bannerBody { height:245px; text-align:center;}

#bannerTD #bannerFooter {     
	position: relative;
	background:#000; height:80px; 
	display:none; 
	width:900px;
	top: -39px;		/* 1x the distance of the footer used to be 78 */
}

#bannerTD #bannerFooterNav { 
	position: relative;
	border: 1px solid grey;
	top: -117px;	/* 2x the distance of the footer used to be 156*/
}	

.footerCell{ padding:5px; text-align:left; border:0px #F90 solid;}
.footerCell .footerTitle {font-family:tahoma, arial; font-size:11px; color:#fff; font-weight: bold;}
.footerCell .footerDesc {font-family:tahoma, arial; font-size:11px; color:#efefef;}
.footerCell ul {list-style: none; margin: 2px; margin-left: 75px; padding-left: 10px;}
.footerCell ul li {margin: 2px; line-height: 13px; padding: 0;}
.footerLink {text-align: right;}

.footerCell .imgDiv{ position:relative; float:left; width:80px; height:65px; margin: 2px 1px 0px 1px;}
.bttnMore {width:57px; height:19px; float: right;}
.bttnMore a{display: block; background:url(images/welcome-banner/gen/bttn_more_small.png) 0 0 no-repeat; line-height: 19px; text-decoration: none;}

.imgBgDiv_i {
	width:82px; height:67px;
	//background: url(images/welcome-banner/gen/thumbBgBordered.png) 0 0 no-repeat;
	padding: 0;
	float:left;
}

</style>	

</head>

<body>
<body id="exterior"> 
<div id="body-bg"> 
</div>
    <div id="container"> 

    <div id="header">

        <a href="index.php<?php echo $referral_string?>">
        	<div id="logo">
        	</div></a><!--end of logo--> 
        
        <div id="updates">
        <span> </span>
        </div><!--end of updates--> 
        
        <div id="login">
         <div id="loginwelcome">
        
	<?php if(!isset($_SESSION['username']) || !isset($_SESSION['password'])){  ?>
		<?php if($final_report !=""){?>
		<font color="red"><? echo $final_report;?></font>
		<?php }else { ?>Welcome Guest, not a member? <a href="register.php<?php echo $referral_string?>"><b>Register Now!</b></a> <?php } ?> 
		   
		   </div><!--end of loginwelcome--> 
		   <form action="" method="post">
                <p>
                <input type="text" title="username" name="username" class="username" value="Username" onclick="if ( value == 'Username' ) { value = ''; }"/>
                <input name="password" type="password" class="password" title="password" value="Password" onclick="if ( value == 'Password' ) { value = ''; }"/>
                <input type="Submit" name="login" class="submit" value="login" tabindex="3" />
                </p>
            </form>	
            </div><!--end of login--> 
            
		<?php } ?>

	<?php if(isset($_SESSION['username']) && isset($_SESSION['password'])){  ?>	
	<table>
		   <tr>
		   	   <td>
				  Welcome <b><?php echo $membername ?></b>
			   </td>
			   </tr>
			   <tr>
			   <td align="right" width="310">
			       Total Points: <b><?php echo $memberpoints ?></b><br>
			  <?php if ($pointsneeded<=0){ ?>
			  You can now request a reward!<?php }else { ?>
		     Points Needed: <b><?php echo $pointsneeded ?> <?php } ?>

		 </b><br>
				</td>
			</tr>
	</table>
	</div>
<!--end of header--> 
	<?php } ?>

<div id="navigation">
  <?php if(isset($_SESSION['username']) && isset($_SESSION['password'])){  ?>	
  <table id="navi-items"> 
  <tr><td> 

	<div class="navi-item navi-item-selected"> 
		<div class="navi-heading navi-heading-selected"> 
	<a href="index.php"><img src="images/home.png" alt="Home" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 


	<div class="navi-item"> 
		<div class="navi-heading"> 
	<a href="vouchers.php"><img src="images/rewards.png" alt="Rewards" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 


	<div class="navi-item"> 
		<div class="navi-heading"> 
	<a href="testimonials.php"><img src="images/testimonials.png" alt="Testimonials" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 


	<div class="navi-item"> 
		<div class="navi-heading"> 
	<a href="terms.php"><img src="images/terms.png" alt="Terms" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 


	<div class="navi-item"> 
		<div class="navi-heading"> 
	<a href="help.php"><img src="images/help.png" alt="Help" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 

				<div class="navi-item"> 
					<div class="navi-heading"> 
						<a href="contact.php"><img src="images/contact-us.png" alt="Contact Us" /></a> 
					</div> 
				</div> 
</td></tr> 
  </table> 
  <?php }else { ?>
  <table id="navi-items"> 
  <tr><td> 

	<div class="navi-item navi-item-selected"> 
		<div class="navi-heading navi-heading-selected"> 
	<a href="index.php"><img src="images/home.png" alt="Home" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 


	<div class="navi-item"> 
		<div class="navi-heading"> 
	<a href="vouchers.php"><img src="images/rewards.png" alt="Rewards" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 


	<div class="navi-item"> 
		<div class="navi-heading"> 
	<a href="testimonials.php"><img src="images/testimonials.png" alt="Testimonials" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 


	<div class="navi-item"> 
		<div class="navi-heading"> 
	<a href="terms.php"><img src="images/terms.png" alt="Terms" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 


	<div class="navi-item"> 
		<div class="navi-heading"> 
	<a href="help.php"><img src="images/help.png" alt="Help" /></a> 
		</div> 
	</div> 


				<div class="navi-spacer"></div> 

				<div class="navi-item"> 
					<div class="navi-heading"> 
						<a href="contact.php"><img src="images/contact-us.png" alt="Contact Us" /></a> 
					</div> 
				</div> 
</td></tr> 
  </table>
  <?php } ?> 
</div><!--end of navigation--> 



<!-- ______________________ BANNER ___________________--> 
	<tr><td id="bannerTD"> 
        <div id="bannerContainer"> 
			<div id="bannerBody">
                <br /><img src="images/banner.png" border="0" alt="Banner" /> 
		</div> 
	</div> 
       
	      <a href="register.php"><img src="images/signup.png" /></a>
                    
        <a href="points.php"><img src="images/earn.png" /></a>
                    <a href="vouchers.php"><img src="images/get.png" /></a>
	</td></tr> 
	<!-- ______________________ /BANNER ___________________--> 






<div id="contents-top"></div> 
<div id="contents">
    <div class="content-block">
  
    <h1>How does <?php echo $title?> work?</h1><br><br>
     
     <a href="register.php<?php echo $referral_string?>"><center><img src="images/step1.png" border="0"><img src="images/step1a.png" border="0"></a><a href="points.php<?php echo $referral_string?>"><img src="images/step2.png" border="0"><img src="images/step2a.png" border="0"><a href="vouchers.php<?php echo $referral_string?>"><img src="images/step3.png" border="0"></center></a>
     <br>
 <br>
     <p>
        It's easy to use your free time to earn <a href="vouchers.php<?php echo $referral_string?>"><b>rewards</b></a>. While you certainly won't get rich quick or instantly win prizes, if you put in a bit of effort you can earn whatever you want! You can redeem points for online goods or for vouchers such as Amazon, iTunes, ASOS and Xbox Live, the choice is yours.
<br><br>
While you learn about new products, share information about yourself, or sign up for online services, you earn points. While MOST OFFERS ARE FREE, you will also find cashback shopping and paid/trial offers - a great way to get a deal on your online purchases! <br><br>
</p>

<h1>Just 3 steps to success!</h1>
<p><br>
1. <b>Register:</b> The sign up process takes about 10 seconds, and we'll even give you <font color=#fcbc0c><b><?php echo $bonuspoints ?> FREE BONUS POINTS</b></font> when you <a href="register.php<?php echo $referral_string?>"><b>register</b></a>.<br><br>
2. <b>Earn points:</b> To be able to offer our users FREE gift vouchers to use at online stores such as Amazon and ASOS, you need to earn points. Earning these points are FREE, and you just need to complete a few surveys to get enough points to claim a free voucher. You can also earn points by signing up to some trial offers, but we recommend you stick to the free surveys for now.<br><br>
3. <b>Get Rewards:</b> Once you have earned <?php echo $mainpointsneeded ?> points on <?php echo $title?> you can swap them for REAL products or vouchers, which can be used at online stores/communities. Basically, you can request ANY product or voucher, as long as we can buy it online and send to you via email or shipping. On top of this, if you wish to have something custom ordered, feel free to tell us something what it is and we can always help you out! The rewards you can receive  are endless........

      </p>
        
        <h1>What are points worth?</h1>
        <p>
        <br>
	10 points = $1.00/£0.50<br>
	50 points = $5.00/£2.50<br>
	100 points = $10.00/£5.00<br>
	200 points = $20.00/£10.00
	<br><br>
	You need <?php echo $mainpointsneeded ?> points before you can redeem them for <a href="vouchers.php<?php echo $referral_string?>">rewards</a>.  
	<br>

        </p>
        <h1>How do I know Simple Rewards is legit?</h1>
        <p>There's no doubt that in today's world fake companies are  everywhere. So how do you know Simple Rewards is, in fact, legit? To start,  Simple Rewards has already paid out over $10,000 in the last month. This shows  not only that we are a legitimate business but also that we are a very active one. If you would like to see more proof of our legitimacy, feel  free to check out our <a href="testimonials.php">Testimonials </a> section and read some of the latest testimonials written by Simple Rewards users!
        </p>
        <br />
      <h1>Reward Ideas</h1>
        <p>
        <br />
        
          <img src="images/ps3.png">  
  <img src="images/giftcards.png">  
  <img src="images/ipodtouch.png">  
        </p>
        <p><center>
          <p><a href="index.php"><img src="images/largebanner.gif" /><hr width="75%">
          <script type=text/javascript language=JavaScript src=http://www.linkreferral.com/networkads2.pl?refid=341046&height=1&width=3&category=money making opportunities&subcategory=services ></script></a></p>
        </center></p>      
        
    </div><!--end of contentblock--> 
    </div><!--end of contents--> 
    <div id="contents-bottom"></div> 
    </div><!--end of container--> 
    </div>
<?php include("footer.php");?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.