Re: while loop
| From: | Brian Clark | Date: | Tue, 10 Apr 2001 06:31:38 +0000 |
| Subject: | Re: while loop | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47959@lists.php.net to get a copy of this message | ||
Hi Jacky,
@ 2:11:06 PM on 4/10/2001, Jacky@lilst wrote:
> Not in the actual code, sorry, I did not copy the opnneing bit, but there is
> one in the code.
> So the same question, I got error said, maximum execution time exceed, am I
> doing something time consuming here?
Unless I'm blind this morning, I don't believe so.
Try this and see what you get:
<?php
$query = "SELECT * FROM MiniOffers";
$result = @mysql_query($query, $connection) or die(mysql_error());
while($row = @mysql_fetch_array($result))
{
$IsAva = $row[6];
}
?>
...
>> @ 1:58:40 PM on 4/10/2001, Jacky@lilst wrote:
>>
>> > Here I got this script:
>>
>> > $queryoffers = "SELECT * FROM MiniOffers WHERE hotel_id = '$hotelID'
>> > ORDER BY start_date ASC";
>> > $resultofrs = mysql_query($queryoffers, $connection) or
> die(mysql_error());
>>
>> > while($row = mysql_fetch_array($resultofrs))
>>
>> Are you missing the opening curly brace in the actual code?
>>
>> > $IsAva = $row[6];
>> > }
...
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please do not carbon copy me on list replies.