mysql - Php while codes show just 1 row -


i'm using these codes.

$blog = mysql_query("select * blog order id");  while($sutun = mysql_fetch_array($blog)) {     $fake = $sutun["date"];     echo "$fake";  }    

when use echo"$fake"; can see of rows. when use <?php echo "$fake" ?> , shows 1 row me.

i want of rows while i'm using <?php echo "$fake" ?>.

beacuse echo"$fake"; in in loop echo @ every iteration thats why can see rows <?php echo"$fake"; ?> executed when loop done last row echoed;


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -