Try a foreach... it works well...
-Original Message-
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] On Behalf Of Lars
Torben Wilson
Sent: Saturday, March 30, 2002 4:38 PM
To: David Johansen
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] For Loop going too long
On Sat, 2002-03-30 at 15:40
On Sat, 2002-03-30 at 15:40, David Johansen wrote:
> I have a question about something weird that I've noticed Here's some code
> that I have that loads up
>
>$sql = "SELECT * FROM pickup_times WHERE DAYOFMONTH(time0_name) =
> $dayofmonth";
>
>$result = mysql_query($sql, $dbh);
>$day
I have a question about something weird that I've noticed Here's some code
that I have that loads up
$sql = "SELECT * FROM pickup_times WHERE DAYOFMONTH(time0_name) =
$dayofmonth";
$result = mysql_query($sql, $dbh);
$day = mysql_fetch_array($result);
for ($i=0; $i";
When I do this i
3 matches
Mail list logo