Hello Experts,

I am stuck in database query. Well i am making a page which retrieve my database value.
For which below is my code:-

PHP Code:
<?php 
$con
=mysqli_connect("localhost","root","","test"); 
if (
mysqli_connect_errno()) 

echo 
"Failed to connect to MySQL: " mysqli_connect_error(); 
}

$result mysqli_query($con,"SELECT * FROM testing where flag=1 ");

foreach (
$result as $results){

while(
$row mysqli_fetch_array($results)) 

echo  
$row['review'] ;
echo  
$row['name'] ;

}
mysqli_close($con); 
?>
When i run the above code it shows me error:

PHP Code:
Warningmysqli_fetch_array() expects parameter 1 to be mysqli_result, array given in /home/stradsol/public_html/test1.php on line 14 

I also tried by replacing with:

PHP Code:
while($row mysqli_fetch_array($resultsMYSQL_BOTH)) 
But still the same error

I am stuck. I dont know what I am missing.

Any help is appreciated.