Senin, 07 Desember 2015

PHP - mengkonversi tanggal dan waktu di database ke php

format di database untuk tanggal otomatis



tampilan di database setelah di gunakan



tampilan yang di inginkan seperti ini :




ini penggalan scriptnya :
$res_tbl ='select create_date from tbl_comments';
while($table =mysql_fetch_array($res_tbl))
{
  echo date('d F, Y h:mA', strtotime($table['tanggal']));
  echo "<br>";
}


3 komentar:

  1. makasih banget mmiiiiinn sangat membaantuuuuu :D <3

    BalasHapus
  2. As reported by Stanford Medical, It's indeed the ONLY reason this country's women live 10 years more and weigh 19 kilos lighter than we do.

    (And really, it has NOTHING to do with genetics or some secret diet and really, EVERYTHING related to "how" they eat.)

    BTW, What I said is "HOW", and not "what"...

    Click this link to discover if this easy questionnaire can help you release your real weight loss possibility

    BalasHapus
  3. If you're looking to lose weight then you need to get on this brand new personalized keto diet.

    To create this keto diet, certified nutritionists, personal trainers, and top chefs have united to provide keto meal plans that are useful, painless, cost-efficient, and satisfying.

    Since their first launch in 2019, 100's of clients have already completely transformed their figure and health with the benefits a great keto diet can provide.

    Speaking of benefits: clicking this link, you'll discover 8 scientifically-proven ones provided by the keto diet.

    BalasHapus