">    [ top banner ]
   

   Options
   Create New Item
   View items
   Add Category
   Preview
   Log Out
offset; $limit = $pager->limit; $page = $pager->page; $query = $query . " limit $offset, $limit"; $result = mysql_query($query); $i = 1; while ($row = mysql_fetch_array($result)) { $title = stripslashes($row['Title']); $description = stripslashes($row['Description']); $link = stripslashes($row['Link']); $ID = stripslashes($row['Id']); $Category = stripslashes($row['Category']); if ($i % 2 == 0) { ?>= $limit) { // output paging system (could also do it before we output the page content) if ($page == 1) // this is the first page - there is no previous page echo ""; else // not the first page, link to the previous page echo "Previous"; if ($page == $pager->numPages) // this is the last page - there is no next page echo ""; else // not the last page, link to the next page echo " Next"; } echo "
   
 ?ContentID=&do=edit>Edit?ContentID=&do=delete>Delete
 ?ContentID=&do=edit>Edit?ContentID=&do=delete>Delete
"; return $total; } function ShowPortfolio($query,$page = 1) { include "connection.php"; include "pag.php"; $result = mysql_query($query); $total = mysql_num_rows($result); $limit = 7; $pager = Pager::getPagerData($total, $limit, $page); $offset = $pager->offset; $limit = $pager->limit; $page = $pager->page; $query = $query . " limit $offset, $limit"; $result = mysql_query($query); $i = 1; while ($row = mysql_fetch_array($result)) { $title = stripslashes($row['Title']); $description = stripslashes($row['Description']); $link = stripslashes($row['Link']); $ID = stripslashes($row['Id']); ?>
 
 
Description:

Click here to view project.

= $limit) { // output paging system (could also do it before we output the page content) if ($page == 1) // this is the first page - there is no previous page echo ""; else // not the first page, link to the previous page echo "Previous"; if ($page == $pager->numPages) // this is the last page - there is no next page echo ""; else // not the last page, link to the next page echo " Next"; } return $total; } ?>