PHP PDO FOREACH LOOP

 

deskripsi kerja

untuk koneksi PDO karena php & mysql yg saya pakai sudah support pdo
command harus pake Foreach Loop karena while loop tidak support di pdo
coding native saja 
hasil jadi harus sama seperti sample dibawah
    data1 category1 data2 category1 data3 category1
    data4 category2 data7 category2 data9 category2
    data5 category3 data6 category3 data8 category1

data dan category adalah hasil dari Echo/Print terpisah bukan bentuk gabungan Array
contoh
foreach($catch as $r){
    echo '$r['data'] $r['category']'    
}




PHP

Project Class: Micro (Under 500rb)
Published Budget: Rp 500,000
Finish Days: 2
Published Date: 28/12/2016 11:07:33 WIB
Start Date: 30/12/2016 09:24:49 WIB
Project Status: Closed
Accepted Worker: Rian (godamri)
Accepted Budget: Rp 200,000
Project Ending: Completed
Finish Date: 31/12/2016 14:48:47 WIB

Project Owner

miracleme
    
10.00/10.00
480 Point
#441 dari 130,979
Rated Worker: 10.00/10.00 pekerjaan bagus sekali
dan cepat
hampir tidak ada kesalahan dalam artian profesional bekerja tinggi
tehnik yang baik
serta pelayanan yang bersahabat

Accepted Worker

godamri
Kota Jakarta Pusat
    
9.75/10.00
211 Point
#764 dari 130,979
Rated Owner: 10.00/10.00

Bintang lima deh... (y)

  User Bids

jajang.umara
    
9.75/10.00

Iswanto
    
9.64/10.00

m.ilham
    
9.57/10.00

akthajaya
    
9.70/10.00

godamri
    
9.75/10.00

teguhsuryo
    
9.00/10.00

Roqiba
    
9.33/10.00

samuelerwardi
    
9.00/10.00

newbiec0der
    
8.33/10.00

cahyocamp
    
0.00/10.00

Recommended Workers

Iswanto

13,151 points
262 projects
    
9.64/10.00

mas.adi

7,722 points
25 projects
    
9.80/10.00

idlamalif

6,737 points
100 projects
    
9.88/10.00

steven.comptia

13,432 points
382 projects
    
9.94/10.00

imzers

6,253 points
42 projects
    
9.87/10.00

Recommended Services

Pembuatan bot line

Rp 1,500,000
5 sales
    
10.00/10.00

Pembuatan template website & Slicing PSD to HTML

Rp 300,000
9 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

meneruskan pekerjaan pembuatan website

Open to SuggestionsOwner: pengenbisa
Deadline: 7 days

Membuat Saklar Otomatis dikendalikan dari Komputer [Automatic Switch]

Open to SuggestionsOwner: johc2000
Deadline: 7 days

Integrasi modul gojek ke online shopping cart

Open to SuggestionsOwner: eugeniagina
Deadline: 14 days

Orange HRMS

Open to SuggestionsOwner: iggy.pop
Deadline: 30 days

Butuh onsite .net programmer untuk 2 bulan

Open to SuggestionsOwner: Argantha
Deadline: 40 days