Senin, 23 September 2013

PHP Indonesia - Facebook: mastah ane punya fungsi gini

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Understand your audience

Are you treating your visitors as stats and numbers? It might be time to put a face to your audience. Try WHYanalytics - a free new real time analytics tool.
From our sponsors
mastah ane punya fungsi gini for($j=0;$j
Sep 23rd 2013, 09:19, by Danura Aditya

Danura Aditya 9:19am Sep 23
mastah ane punya fungsi gini
for($j=0;$j<count($listing);$j++)
{

echo $listing[$j]['pin']."</br>";
echo $listing[$j]['serial']."</br>";
}

hasilnya :
E53|7F2|JCB
018|119|111

ane mau nampilin
E53 018
7F2 119
JCB 111

bagaimana yah caranya
thks

Danura Aditya 9:21am Sep 23
udah pake ini sih gan
$pecpin=explode("|",$listing[$j]['pin']);
$pecseri =explode("|",$listing[$j]['serial']);

$data= implode(",",$pecpin);

$data2= implode(",",$pecseri);

$menu = array_merge($pecpin,$pecseri);

foreach($menu as $val)
{
echo $val;
}

Danura Aditya 9:21am Sep 23
hasilnya malah salah

Agus Setiawan 9:23am Sep 23
$char1 = ""; $char2 = "";
for($j=0;$j<count($listing);$j++)
{

$char1 .= $listing[$j]['pin']." | ";
$char2 .= $listing[$j]['serial']." | ";
}

Echo $char1."<BR>".$char2;

// #IdeAja

Danura Aditya 9:24am Sep 23
gmana mas ??

Danura Aditya 9:33am Sep 23
mas jadi gini
E53S|7F2|JCX|
111|019|020 | |

Danura Aditya 9:35am Sep 23
sama mas soalnya di database saya simpen nya gini
E53|7F26|JCX|K7A4

Agus Setiawan 9:35am Sep 23
Tinggal kasih IF aja biar kolom terakhir gak ada tanda " | "

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar