Problem with while

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI

How can have a while and a foreach in it?

I have something like this:

 

While($row=mysqli_fetch_assoc($r)){

               // code

               Foreach($row['key'] as $value){

                              //code

               }

}

 

But the while loop run just one time and I'm sure it should run more than
one time and I know the problem is with the foreach .by the way,I can't
delete the foreach from the while because It works with each row from the
while loop.

Does anybody has any idea about it?

thanks

 

 

image002

         HNO

 



[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux