Menampilkan Players Id di tabel mysql ke php

 

Tabel Mysql :

nama tabel : players  datanya 

id : 1     players_id :d552c83b-f62b-4ca1-97e0xxxxx

id : 2     players_id : 785fa7dc-a2c9-413d-a6d2-1xxxxx


PHP nya :


function kirim(){

$content = array(

      "en" => $_POST["judul"]

      );

    $headings = array("en" => "NOTIFIKASI DARI ADMIN ");

$fields = array(

'app_id' => "1cc08604-6d35-4669-8dba-xxxxxxx",

'include_player_ids' => array("785fa7dc-a2c9-413d-a6d2-1xxxxx","d552c83b-f62b-4ca1-97e0xxxxx","31bedc80-2a43-42fe-b90c-b3944xxxxxx","f8193f95-af4a-4b94-a89a-d41xxxxxx6"),

'data' => array("foo" => "bar"),

'contents' => $content,

'headings' => $headings

);


di bagian include players id nya mau di ambil dari tabel mysql tadi

MySQL PHP

Project Class: Open to Suggestions
Published Budget: Open to Suggestions
Finish Days: 1
Published Date: 30/03/2019 10:07:27 WIB
Start Date: 30/03/2019 13:49:05 WIB
Project Status: Closed
Accepted Worker: fred_lim (fred_lim)
Accepted Budget: Rp 75,000
Project Ending: Completed
Finish Date: 30/03/2019 13:57:38 WIB

Project Owner

rafabet
Kota Jakarta Timur
    
10.00/10.00
14 Point
#4,861 dari 167,897
Rated Worker: 10.00/10.00

Mantap.....

Accepted Worker

fred_lim
Kota Jakarta Barat
    
9.96/10.00
866 Point
#269 dari 167,897
Rated Owner: 10.00/10.00

good owner

  User Bids

khoirulh1610
    
9.70/10.00

hattareza
    
9.77/10.00

fred_lim
    
9.96/10.00

rorkyendo
    
10.00/10.00

joharico
    
9.00/10.00

okakzai
    
9.48/10.00

kenduigraha
    
8.00/10.00

Recommended Workers

Iswanto

17,378 points
360 projects
    
9.71/10.00

steven.comptia

20,984 points
576 projects
    
9.96/10.00

idlamalif

9,647 points
134 projects
    
9.88/10.00

imzers

10,024 points
50 projects
    
9.86/10.00

mas.adi

9,490 points
29 projects
    
9.83/10.00

Recommended Services

Pembuatan bot line

Rp 1,500,000
6 sales
    
10.00/10.00

Aplikasi Jasa Servis dan panggil Teknisi

Rp 3,800,000
2 sales
    
10.00/10.00

Pembuatan Bot Telegram & Web Admin

Rp 1,500,000
2 sales
    
10.00/10.00

Jasa Pembuatan Website Streaming Film (Isis 3500+ Film)

Rp 1,000,000
3 sales
    
9.33/10.00

Open Projects

cari freelancer buat laporan untuk proyek pemerintahan

Open to SuggestionsOwner: zendesign
Deadline: 3 days

Membuat scarpe telegram username group

Rp 200,000Owner: nurkhalisp
Deadline: 7 days

Custom header & home page wordpress

Open to SuggestionsOwner: andikapratama
Deadline: 1 days

Web Jobs Portal

Rp 5,000,000Owner: pujiclan
Deadline: 31 days

Membuat Arsitektur Microservice With Python, golang & php

Rp 5,000,000Owner: zmoerf
Deadline: 7 days