jigsawsoul Posted August 12, 2009 Share Posted August 12, 2009 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... <?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'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/170003-solved-fatal-error-call-to-undefined-function-paginate/ Share on other sites More sharing options...
Philip Posted August 12, 2009 Share Posted August 12, 2009 Are you including the page that has the paginate function, because it seems like its not being included Quote Link to comment https://forums.phpfreaks.com/topic/170003-solved-fatal-error-call-to-undefined-function-paginate/#findComment-896804 Share on other sites More sharing options...
jigsawsoul Posted August 12, 2009 Author Share Posted August 12, 2009 you know what its so dumb i have copyed the wrong included them another page. thanks alot Quote Link to comment https://forums.phpfreaks.com/topic/170003-solved-fatal-error-call-to-undefined-function-paginate/#findComment-896808 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.