Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1645 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Marketplace     Services Offered / Looking to Hire     Programming or Coding :

[PHP] Paying money!!! Pagination help!

Thread title: [PHP] Paying money!!! Pagination help!
Closed Thread    
    Thread tools Search this thread Display Modes  
02-13-2007, 05:45 PM
#1
allgamezfree is offline allgamezfree
Status: Junior Member
Join date: Oct 2006
Location:
Expertise:
Software:
 
Posts: 32
iTrader: 0 / 0%
 

allgamezfree is on a distinguished road

  Old  [PHP] Paying money!!! Pagination help!

I need this code to have page numbers in it where it would echo the members but will list them in pages instead of a long long list.. how much would this cost to do.

Example :
<<Prev -- 1,2,3,4 -- Next>>


<? ob_start();
include('header.php');
if (!isset($HTTP_SESSION_VARS['userid'])) { header("Location: login.php"); }
$getdata = mysql_query("SELECT * FROM users WHERE userid = '".$HTTP_SESSION_VARS['userid']."'");
$fetchdata = mysql_fetch_array($getdata) or die ('I cannot connect to the database because: ' . mysql_error());
?>

<p>
Below is the list of referrals that have signed up under your
referral link. <br>
See further down for your referral link and
banners to use on your web site.</p>
<table border="0" cellpadding="2" cellspacing="3" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber25" width="95%">
<tr>
<td width="156" bgcolor="#555555" class="baseline2"><font color="#FFFFFF"><b>Ref ID</b></font></td>
<td width="260" bgcolor="#555555" class="baseline2"><font color="#FFFFFF"><b>Country</b></font></td>
<td width="351" bgcolor="#555555" class="baseline2"><font color="#FFFFFF"><b>Complete Offers</b></font></td>
<td width="225" bgcolor="#555555" class="baseline2"><font color="#FFFFFF"><b>Signup Date</b></font></td>
</tr>
<?
$getdata = mysql_query("SELECT * FROM users WHERE refid = '".$HTTP_SESSION_VARS['userid']."' ORDER BY userid ASC");
while($row = mysql_fetch_array($getdata)) {

$sqli = mysql_query("SELECT * FROM offers_active WHERE username = '".$row['userid']."' AND status = '2'");
$numrowsi = mysql_num_rows($sqli);
?>
<tr>
<td width="156" bgcolor="#F9F9F9" class="baseline"><? echo $row['userid']; ?></td>
<td width="260" bgcolor="#F9F9F9" class="baseline"><? echo $row['country']; ?></td>
<td width="351" bgcolor="#F9F9F9" class="baseline"><? echo $numrowsi; ?></td>
<td width="225" bgcolor="#F9F9F9" class="baseline"><? echo $row['refdate']; ?></td>
</tr>
<? } ?>
</table>


<? include('footer.php'); ?>

02-13-2007, 05:53 PM
#2
Xi0s is offline Xi0s
Status: Sin Binner
Join date: Dec 2006
Location: Huddersfield, UK
Expertise:
Software:
 
Posts: 384
iTrader: 3 / 83%
 

Xi0s is on a distinguished road

Send a message via MSN to Xi0s

  Old

$80, not much.

02-13-2007, 05:53 PM
#3
theolatic is offline theolatic
Status: Member
Join date: Dec 2005
Location: Staffordshire, UK
Expertise:
Software:
 
Posts: 375
iTrader: 1 / 100%
 

theolatic is on a distinguished road

Send a message via MSN to theolatic

  Old

Hey i can do this for you. Do you have msn?

Taken: I am now working on this.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed