Rabu, 11 September 2013

PHP Indonesia - Facebook: maaf mau tanya lagi saya punya data tanggal di mys...

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/ 
Learn to Play the Ukulele

Make your own music in your own way on the ukulele and have fun doing it. This online course is taught by "Cool Hand Uke." Sign up today for just $25.
From our sponsors
maaf mau tanya lagi saya punya data tanggal di mys...
Sep 12th 2013, 02:05, by Fangfang Rizal Mukhtar

Fangfang Rizal Mukhtar 2:05am Sep 12
maaf mau tanya lagi
saya punya data tanggal di mysql dengan format "2013-09-12" atau YYYY-MM-DD

nah kalau mau menampilkan data tersebut di PHP dengan format DD-MM-YYYY bagaimana ya?
baca http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format masih nggak umum

Gunawan Mujur Wibisono 2:07am Sep 12
datetime class

Andi Malik Rizki Maula 2:08am Sep 12
klo mau ubah di php nya jadi kyk gini:
<?php
$time = strtotime('2013-09-12');
echo date('d-m-Y', $time);

Fangfang Rizal Mukhtar 2:12am Sep 12
makasih saya coba dulu

Cahya Dsn 2:16am Sep 12
[OOT] mysql solution:

SELECT DATE_FORMAT(date_field,'%d-%m-%Y') AS tgl FROM table;

Ibenx Sisare 2:16am Sep 12
buat fungsi aja
function convertTgl($tgl){
$tg=explode('-',$tgl);
return $tg[2].' '.bulan($tg[1]).' '.$tg[0];
}
jd nanti pas nampilin data dr mysql tinggal converTgl($data['tgl'])
semoga membantu

Fangfang Rizal Mukhtar 2:21am Sep 12
terima kasih
yang <?php
$time = strtotime('2013-09-12');
echo date('d-m-Y', $time); tadi sudah work
yang lainnya juga saya simpan, siapa tahu besok besok berguna

Terima kasih

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