Re: loop weirdness
| From: | Dan Shirah | Date: | Tue, 19 Aug 2008 15:10:33 +0000 |
| Subject: | Re: loop weirdness | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278341@lists.php.net to get a copy of this message | ||
>
> Your comments indicate you're trying to end the if in the middle of the
>> while, but what PHP will be doing is ending the while where you want to end
>> the if. I assume what you actually want to do is end both after the HTML is
>> output, but I'm just guessing.
>>
>> -Stut
>
>
Depending on specific conditions, one of two queries will be ran.
In one query $f_date == "" and in the other $f_date == "some date"
If $f_date == "some date" then I will have multiple rows of data returned so
I would need to use:
while($row = ifx_fetch_row($info) {
But, if $f_date == "" then only a single row would be returned and I would
use:
$row = ifx_fetch_row($info);
So, depending if $f_date is "" or "some date" I have A LOT of tables and
data that are populated with results pulled from the seperate queries and I
don't want to duplicate all of that data.