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?
||2. Re: Usage Analysis
|2013-01-11 18:00:09 - In reply to message 1 from Darren Conyard|
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...
$page = 1;
$page = $_GET['page'];
$paging = new AutoPaging("tb_user", 2, $page);
foreach($paging->getContent() as $row)
echo " : ";
echo "<br />";
Hope it will help you...
And very thanks for try my php class... :D
|2013-01-17 17:57:28 - In reply to message 2 from rafi randoni|
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.