gundambison

mysql dengan for

Dec 13th, 2015
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. <?php
  2. $sql="SELECT * total
  3.         FROM user  ";
  4.         $q = mysql_query($sql)or die(mysql_error());
  5. for($i=0;$i<mysql_num_rows($q);$i++){
  6.     $data=mysql_fetch_array($q);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment