Advertisement
GWibisono

Untitled

Jul 17th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. $sql="select * from table where id_laporan=1";
  2. $q=$mysqli->query($sql);
  3.     if(!$q)
  4.     {
  5.         die($sql);
  6.     }
  7.      
  8.      
  9.     while ($r = $q->fetch_assoc())
  10.     {
  11.         $id=$r[rayon];
  12.         $a[$id]=array($r[jan], $r[feb],$r[mar],$r[april]);
  13.        
  14.    
  15.     }
  16.    
  17.     $p=json_encode;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement