*1st page*
<?
if(isset($k)){
$k=$k;
}else{
$k=0;
}
//change the $limit to number of records to b displayed
$limit=4;
mysql_connect("***","", "");
mysql_select_db("***");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>URBANdog +Online Portfolio of Marie Prezner</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="css.css" rel=stylesheet>
</head>
<!--Project-->
<?
$query=mysql_query("select from portweb order by id desc limit $k, $limit");
$resultcount=mysql_result(mysql_query("select count() as count from portweb"),0,'count');
while($data=mysql_fetch_array($query)):
echo "<table class=\"subfpo\">
<tr>
<td class=\"subfpo\" align=\"center\">
<div class=\"subtpixs\" align=\"center\"><a href=\"indexid.php?k=$data[id]\"><img src=\"portfolio/$data[image]\" alt=\"print\" border=\"0\"></a></div>
</td>
<td class=\"subfpocopy\">
<div class=\"tpixs\">
<div class=\"subprojtitle\"><img src=\"grfx/t_web.gif\" alt=\"web\"></div>
<div class=\"subprojtitle\">$data[title]</div>
<div class=\"subprojdate\">$data[date]</div>
<div class=\"subprojcontent\">$data[description]</div>
<div class=\"subprojtitle\" align=\"right\"><a href=\"indexid.php?k=$data[id]\">+Full Project</a></div>
</div>
</td>
</tr>";
endwhile;
if($resultcount>0){
if(isset($k) && ($k>0)){
$prev=max($k-$limit,0);
$nav.= "<a href=\"?k=$prev\">«Previous</a> |";
}
$end=(($k+$limit)>$resultcount)?$resultcount🙁$k+$limit);
$nav.="<b>Total :".$resultcount." Showing: ".($k+1)."-".($end)."</b>";
if (isset($k) && (($k+$limit) < $resultcount)){
$next=$k+$limit;
$nav.= "|<a href=\"?k=$next\">Next»</a>";
}
echo "<tr><td class=\"subprojtitle\"><br><br>$nav</td></tr>";
}
?>
</table>
<!--//Project-->
** 2nd page*******
<?
mysql_connect("***","", "");
mysql_select_db("***");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>URBANdog +Online Portfolio of Marie Prezner</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="css.css" rel=stylesheet>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="content">
<table class="logo">
<tr>
<td class="logo"><img src="grfx/logo.gif" alt="urbandog"></td>
<td class="logo" align="right"><img src="grfx/bxs.gif" alt="bxs"></td>
</tr>
</table>
<table>
<tr>
<td class="personal"><img src="grfx/map_personal.gif" alt="personal" border="0" usemap="#Map"></td>
<td>
<?php
$query="SELECT * FROM portweb WHERE id='$id'";
$result=mysql_query($query);
if ($result) {
while ($data = mysql_fetch_assoc($result)){
?>
<div class="flash" align="center"><?php echo $data[image] ?></div>
<!---->
<table class="prevnext"><tr>
<td width="15">back</td>
<td width="100%" align="center">1234</td>
<td width="15">next</td>
</tr></table>
<table class="projtitle"><tr>
<td width="50%"><img src="grfx/heading_featured.gif" alt="featured"></td>
<td width="50%" class="lftborder"><img src="grfx/heading_details.gif" alt="details"></td>
</tr></table>
<table class="projid"><tr>
<td width="50%"><?php echo $data[date] ?></td>
<td width="50%" class="lftborder"><?php echo $data[description] ?></td>
</tr></table>
<table class="copyright"><tr><td align="center"><img src="grfx/copyright.gif" alt="copyright"></td></tr></table>
<?php
} // close while loop
} // close if statement
?>
<!--//--->
**** there is the code....
Thank you!