Jump to content

[SOLVED] Fatal error: Call to undefined function paginate()


Recommended Posts

I keep getting this error i don't really understand why i used the code on another page and just seemed to work fine, but now it whats to play up. any help to why its doing this? thanks...  :wtf:

 

<?php

session_start();

include '../../library/opendb.php';
include '../../library/config.php';
include '../../library/functions/f_login.php';
include '../../library/functions/f_nav.php';
include '../../library/functions/f_logs.php';

sessionAuthenticate( );

$message .= $_SESSION["message"];

$username = $_SESSION["username"];

$result = "SELECT * FROM gb_login WHERE username = '$username'";
$result = mysql_query ($result) or die (mysql_error());
$row = mysql_fetch_assoc ($result);

$username = $row['username'];
$username = ucwords($username);

// Current page.
$page = "customers";

$maxPerRow = 3;

// Get all member's information
$result = "SELECT * FROM gb_login
		  LEFT JOIN customers ON gb_login.customer_id=customers.customer_id
		  ORDER BY login_id DESC LIMIT ".( $_GET['offset'] ? $_GET['offset'] : 0 ).', '.$maxPerRow;
		  
$rowCount = "SELECT * FROM gb_login
		  		LEFT JOIN customers ON gb_login.customer_id=customers.customer_id";
		  		
$rowCount = mysql_num_rows( mysql_query( $rowCount ) );
		  
$result = mysql_query ($result) or die (mysql_error());
while($row = mysql_fetch_assoc($result)) 
{
	$tablerows .= '
		<tr class="alt">
			<td>'.$row['username'].'</td>
			<td>'.$row['password'].'</td>
			<td><a href="mailto:'.$row['email'].'">'.$row['email'].'</a></td>
			<td>'.$row['userstatus'].'</td>
			<td><a href = "update.php?id='.$row['login_id'].'" >Edit</a> | <a href = "delete.php?id='.$row['login_id'].'" >Delete</a></td>
		</tr>
	';		
 }

?>

<?php include ('../../library/template/admin/htmlstart.php'); ?>

<div id="wrap" class="clearfix">

	<?php include ('../../library/template/admin/adminpanel.php'); ?>
    
    <div id="content" class="clearfix">
    	    	
		<?php mainNav($page); ?>

    	<div id="left" class="clearfix">
    		<div id="left_container">
    			
				<?php subNav($page); ?>

				<?=$message?>

				<h1 class="section">Current Customers</h1>
    					
    			<table id="project_members">
				    <tr>	
				    	<th>Username:</th>
				    	<th>Password:</th>
				    	<th>Email:</th>
				    	<th>Status:</th>
				    	<th>Operations:</th>
				    </tr>
				    	
				    <?=$tablerows?>
				    	
				</table>

				<?=paginate( $rowCount, $maxPerRow )?>

    		</div>
    	</div>
    	<!-- Right Side Bar Here -->	    	
		<?php include ('../../library/template/admin/footer.php'); ?>
</body>
</html>

<?php

unset ($_SESSION["message"]);

include '../../library/closedb.php'; 

?>

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.