Zeus wrote:
>
> That was detailed :)
>
> Thanks Jack, it fixed my misconception of the = and == operators.
>
> BUT ...
>
> > mysql_fetch_array keeps track of where it is in the array.
> > after each while loop it moves a 'step ahead' in the result
>
> the mysql_fetch_array fetches the results in an array but should it be an
> one time affair ?
hey,
i'm not sure i follow the 'should it be an one time affair' question...
if should be a X time affair, where X is the amount of rows returned
from mysql.
if you're wondering about the = and it being a 'one time' thing...well,
it is, but since its stuck in a while loop, it used 'once' again and
again...if that's not TOO confusing...
i think of it the same way as something like this:
$count=0;
while($count++<10){
echo "count is $count";
}
the increment operater is a 'one time' operation, but used in a loop,
it'll keep going...
same if you had this...
while(($count+=1)<10){
echo "count is $count";
}
(except of course the second loop cuts off before 10...)
this help?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]