nic, pusto, biało, dlaczego nie wyswietla mi zawartosci bazy i stronnicowania? gdzie leży błąd ?sadsmiley02.gif

proszę o pomoc

pozdrawiam


  1. <?
  2. // baza
  3. include(&#092;"config.php\");
  4.  
  5. $page = $_GET['page'];
  6. $limit = 5;
  7. $wynik = mysql_query(&#092;"SELECT COUNT (*) FROM tabela\");
  8. $total = mysql_result($wynik, 0, 0);
  9.  
  10. $pager = Pager::getPagerData($total, $limit, $page);
  11. $offset = $pager->offset;
  12. $limit = $pager->limit;
  13. $page  = $pager->page;
  14.  
  15.  
  16. $zapytanie = &#092;"SELECT * FROM tabela ORDER BY 'id' DESC LIMIT $offset, $limit\";
  17. $wynik = mysql_query($zapytanie); 
  18.  
  19.  
  20. while ($rekord2 = mysql_fetch_array ($wynik)) {
  21. $id2 = $rekord2[0];
  22. $email2 = $rekord2[1];
  23.  
  24. echo (&#092;"$id2\");
  25. echo (&#092;"$email2\");
  26. }
  27.  
  28. if ($page == 1) // this is the first page - there is no previous page 
  29. echo &#092;"Previous\";
  30. else // not the first page, link to the previous page 
  31. echo &#092;"<a href=\"test.php?page=\" . ($page - 1) . \"\">Previous</a>\";
  32.  
  33. for ($i = 1; $i <= $pager->numPages; $i++) {
  34. echo &#092;" | \";
  35. if ($i == $pager->page)
  36. echo &#092;"Page $i\";
  37. else
  38. echo &#092;"<a href=\"test.php?page=$i\">Page $i</a>\";
  39. }
  40.  
  41. if ($page == $pager->numPages) // this is the last page - there is no next page 
  42. echo &#092;"Next\";
  43. else // not the last page, link to the next page 
  44. echo &#092;"<a href=\"test.php?page=\" . ($page + 1) . \"\">Next</a>\";
  45. ?>