First record not diplaying
| From: | Gary Maddock-Greene | Date: | Mon, 22 Dec 2008 14:02:56 +0000 |
| Subject: | First record not diplaying | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-284954@lists.php.net to get a copy of this message | ||
Hi, I seem to have a bug in my code but can't see why. My first record does not display when I run a search. Can anyone spot what I have done wrong? Thanks
if (0 == $totalRows_rsSearch) {
echo "<h3>Sorry no products were found</h3>";
} else {
echo "<h3>Please click on a product for further information.</h3>";
while ($row_rsSearch = mysql_fetch_assoc($rsSearch)){
echo "<div class=\"productitem\"><img src=\"products".
$row_rsSearch['product_image']."\">
- Gary Maddock-Greene