Advertisement
Guest User

Untitled

a guest
Jan 15th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. while($rows = mysql_fetch_array($query)) {
  2.  
  3.                 $id = $rows['id'];
  4.            
  5.                 $liked_username_query = mysql_query("SELECT * FROM users where `id` = '$id' ");
  6.  
  7.                 $liked_user_row = mysql_fetch_assoc($liked_username_query);
  8.  
  9.                 $count = mysql_num_rows($query);
  10.  
  11.                     for($i = 0; $i <= $count; $i++) {
  12.  
  13.                         $matchcount = 'match_'. $i .'';
  14.                         $match = array();
  15.                         $match[$matchcount] = $liked_user_row['username'];
  16.  
  17.                     }
  18.  
  19.                 echo json_encode($match);
  20.  
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement