i want to use "foreach " loop statement in my php program.instead of taking array i want to use the resultant query(taken from the database) is this possible to do so.
like...
foreach($result as $key=>$value){
// statement to print the records.
I am confused....i think when we fetch some records from database and stores it in any variable . it's (the variable is)an array in itself. I may be wrong.If i am ...then please correct me.
Thanks in advance.