Login   Register  
PHP Classes
elePHPant
Icontem

Usage Analysis

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Auto-Paging  >  All threads  >  Usage Analysis  >  (Un) Subscribe thread alerts  
Subject:Usage Analysis
Summary:Auto paging displaying the content
Messages:4
Author:Darren Conyard
Date:2013-01-09 15:33:01
Update:2013-09-12 15:47:22
 

  1. Usage Analysis   Reply   Report abuse  
Picture of Darren Conyard
Darren Conyard
2013-01-09 15:33:01
Hi Rafi,

Is there any way you could include or explain how to use these functions in order to display your results in pages?

I have got up to accessing the database to retrieve the data and to output it in a table, but I am doing something wrong as clicking on the links does not change the data displayed.

Is there any way you could help with this?

Best Regards

Darren Conyard

  2. Re: Usage Analysis   Reply   Report abuse  
Picture of rafi randoni
rafi randoni
2013-01-11 18:00:09 - In reply to message 1 from Darren Conyard
hi...

I'm sorry cause i haven't write how to used file, but i have upload sample file, and i give it some explanation...

ooh, about the error...
actualy, the class need one more parameter,
it must be like this...

<?php
include "connection.php";
include "autopaging.php";

$page = 1;

if(isset($_GET['page']))
{
$page = $_GET['page'];
}
$paging = new AutoPaging("tb_user", 2, $page);

foreach($paging->getContent() as $row)
{
echo $row['level_kd'];
echo " : ";
echo $row['level_status'];
echo "<br />";
}

echo $paging->getPaging();
?>

Hope it will help you...
And very thanks for try my php class... :D

  3. Usage Analysis   Reply   Report abuse  
Picture of Darren Conyard
Darren Conyard
2013-01-17 17:57:28 - In reply to message 2 from rafi randoni
Aha!

thanks works like a charm, I am quite new to PHP and I am not used to using foreach loops and there were a couple of other things in there which allowed it to work properly like starting the page variable at one and including that in the class initialisation, so it does not skip the first record.

Thanks again

Darren

  4. Re: Usage Analysis   Reply   Report abuse  
Picture of Mas Adi
Mas Adi
2013-09-12 15:47:22 - In reply to message 2 from rafi randoni
how to display data if there is a function WHERE in the SELECT function?
:)