{ "chat_list" : [] } { "chat_list" : [ member_1."' UNION SELECT nama_sekolah from sekolah where paket!='Free' and email_daftar='".$chat_list->member_1."' UNION SELECT nama from sekolah_siswa where email='".$chat_list->member_1."' UNION SELECT nama_guru from sekolah_guru where email='".$chat_list->member_1."' and status_guru='Aktif'")); $nama_2 = mysql_fetch_object(mysql_query("SELECT nama from admin where email='".$chat_list->member_2."' UNION SELECT nama_sekolah from sekolah where paket!='Free' and email_daftar='".$chat_list->member_2."' UNION SELECT nama from sekolah_siswa where email='".$chat_list->member_2."' UNION SELECT nama_guru from sekolah_guru where email='".$chat_list->member_2."' and status_guru='Aktif'")); ?> { "chat_room_id" : "id ?>", "member_1" : "member_1 ?>", "display_name_1" : "nama ?>", "member_2" :"member_2 ?>", "display_name_2" :"nama ?>", "last_message" : "last_message ?>" } ] }