Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while($rows = mysql_fetch_array($query)) {
- $id = $rows['id'];
- $liked_username_query = mysql_query("SELECT * FROM users where `id` = '$id' ");
- $liked_user_row = mysql_fetch_assoc($liked_username_query);
- $count = mysql_num_rows($query);
- for($i = 0; $i <= $count; $i++) {
- $matchcount = 'match_'. $i .'';
- $match = array();
- $match[$matchcount] = $liked_user_row['username'];
- }
- echo json_encode($match);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement