Minggu, 18 Agustus 2013

PHP Indonesia - Facebook: agan agn tolong di koreksi dong,, ini kok gak kelu...

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/ 
Marketing Mobile Apps

This online course focuses on marketing efforts that will increase your app's exposure and establish a mobile app marketing plan. Enroll today for $99.
From our sponsors
agan agn tolong di koreksi dong,, ini kok gak kelu...
Aug 19th 2013, 00:30, by Muhammad Ilham

Muhammad Ilham 12:30am Aug 19
agan agn tolong di koreksi dong,, ini kok gak keluar grafiknya sih,, tolong bantuannya gan..

<?php
include('config.php');
$menu=array();
$ret=01;
while( $ret <= 31 ){
$merek="2013-07-$ret";
$sql_jumlah = "SELECT sum(time) AS total FROM ot WHERE date='$merek'";
$qry = mysql_query( $sql_jumlah ) or die(mysql_error());
while($row=mysql_fetch_array($qry)){
$menu[] = $row['total'];
}
$ret++;
}
$aray1= join(" ,", $menu);
$aray2= "'".join("',' ",$menu)."'";

echo $aray1;
echo $aray2;
?>
<html>
<head>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/highcharts.js" type="text/javascript"></script>
<script type="text/javascript">
var chart1; // globally available
$(document).ready(function() {
chart1 = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'column'
},
title: {
text: 'grafik ot summary '
},
xAxis: {
categories: [<?php echo $aray2;?>]
},
yAxis: {
title: {
text: 'Minute'
}
},
series: [{
name: 'TCH Traffic',
data: [<?php echo $aray1;?>]
}]
});
});
</script>
</head>
<body>
<div id='container'></div>
</body>
</html>

Cahya Dsn 12:49am Aug 19
cek aja source code HTMLyang digenerate terlebih dahulu .. program yang aneh.. kenapa query-nya diulang-ulang..padahal cukup 1 query aja.. cek nilai x, dan y-nya juga ^_^V

Muhammad Ilham 12:50am Aug 19
iya itu baru conthnya.. maksud.a generate gmna??

Cahya Dsn 12:51am Aug 19
lha kalo bikin web pake php kan hasilnya di browser itu kode3 html (php->generate HTML code) .. nah yang di browser itu di view source HTML-nya gimana.. sudah paham sintak HTML 'kan?

Cahya Dsn 1:18am Aug 19
mungkin kayak gini: http://pastie.org/8248790

maah ane nubi gak bisa koding..cuman bisa asal koming..jangan dibata gan ^_^V

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