Here is the code I tried to clean up a little deleting tables and styles tags. I im working with the dreamweaver.
The search:
<form name="form1" method="post" action="resultsName.php">
<p>
<input name="search" type="text" id="search">
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<form name="form2" method="post" action="resultsPrice.php">
<input name="val1" type="text" id="val1" value="0">
to
<input name="val2" type="text" id="val2" value="9999">
<input type="submit" name="Submit2" value="Submit">
</form>
The result page:
<?php if ($totalRows_Resultname > 0) { // Show if recordset not empty ?>
Articles <?php echo ($startRow_Resultname + 1) ?> to <?php echo min($startRow_Resultname + $maxRows_Resultname, $totalRows_Resultname) ?> of a total of <?php echo $totalRows_Resultname ?> </p> <?php do { ?>
<a href="detailEn.php?v=<? echo $row_Resultname['Id']; ?>" target="_self"><img src="<?php echo $row_Resultname['URL']; ?>" width="100" height="85" border="0"></a><a href="detailEn.php?v=<? echo $row_Resultname['Id']; ?>"><?php echo ucfirst($row_Resultname['name_en']); ?></a><img src="usd.jpg" width="36" height="11"><?php echo $row_Resultname['prize']; ?><?php echo $row_Resultname['state_en']; ?>
<?php } while ($row_Resultname = mysql_fetch_assoc($Resultname)); ?>
<p>
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center">
<?php if ($pageNum_Resultname > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Resultname=%d%s", $currentPage, 0, $queryString_Resultname); ?>">First</a>
<?php } // Show if not first page ?>
</td>
<td width="31%" align="center">
<?php if ($pageNum_Resultname > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Resultname=%d%s", $currentPage, max(0, $pageNum_Resultname - 1), $queryString_Resultname); ?>">Previous</a>
<?php } // Show if not first page ?>
</td>
<td width="23%" align="center">
<?php if ($pageNum_Resultname < $totalPages_Resultname) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Resultname=%d%s", $currentPage, min($totalPages_Resultname, $pageNum_Resultname + 1), $queryString_Resultname); ?>">Next</a>
<?php } // Show if not last page ?>
</td>
<td width="23%" align="center">
<?php if ($pageNum_Resultname < $totalPages_Resultname) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Resultname=%d%s", $currentPage, $totalPages_Resultname, $queryString_Resultname); ?>">Last</a>
<?php } // Show if not last page ?>
</td>
</tr>
</table>
</p></td>
</tr>
<?php } // Show if recordset not empty ?>
</table>
</p>
<p> </p>
<?php if ($totalRows_Resultname == 0) { // Show if recordset empty ?>
<p align="center">We don´t have any articles for this section yet. </p>
<?php } // Show if recordset empty ?>