Re: First record not diplaying
| From: | Gary Maddock-Greene | Date: | Mon, 22 Dec 2008 14:29:13 +0000 |
| Subject: | Re: First record not diplaying | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284963@lists.php.net to get a copy of this message | ||
Very helpful thanks Wolf. fyi the web site you see was done by my son.
This is a live project that I was just asking for help on ... a pointer perhaps. Too much to ask I guess
--
- Gary Maddock-Greene
"Wolf" <lonewolf@nc.rr.com> wrote in message
news:20081222141852.OVV8I.364383.root@cdptpa-web15-z01...
> ---- Gary Maddock-Greene <gmg@maddock-greene.co.uk> wrote:
>> 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
>
> Is this another one of your classes? I see your email address links to a
> web page created for a class.
>
> Without the rest of the code (the code above what you have placed) and the
> end of the echo line you have provided, all any of us can do is a guess.
>
> However one thing to note, this list was not created to help you with your
> homework and with the previous postings you have written, it is pointedly
> answering different places you have stumbled in your work and haven't
> checked your book, the online resources, or a TA.
>
> Wolf