From 4d0409dc24b6c1fc6337b67bb518b736e28923ec Mon Sep 17 00:00:00 2001
From: Venny Larasati <venny_la@yahoo.com>
Date: Tue, 17 May 2016 17:37:43 +0700
Subject: [PATCH] minor changes

---
 P3/controller/statistik_controller.php | 8 ++++----
 P3/index.php                           | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/P3/controller/statistik_controller.php b/P3/controller/statistik_controller.php
index b78c3a9..df530d1 100644
--- a/P3/controller/statistik_controller.php
+++ b/P3/controller/statistik_controller.php
@@ -20,8 +20,8 @@ function getStatistik(){
 
 	// get nilai
 	$penilaian = array();
-	$sql = "SELECT nip, nilai FROM penilaian;"
-	$result = $connp->query($sql);
+	$sql = "SELECT nip, nilai FROM penilaian;";
+	$result = $connl->query($sql);
 
 	if ($result->num_rows > 0) { 
 	    while($row = $result->fetch_assoc()) {
@@ -32,7 +32,7 @@ function getStatistik(){
 	}
 
 	// get unit kerja pegawai
-	$sql = "SELECT nip, unit_kerja FROM pegawai;"
+	$sql = "SELECT nip, unit_kerja FROM pegawai;";
 	$result = $connp->query($sql);
 
 	if ($result->num_rows > 0) { 
@@ -51,7 +51,7 @@ function getStatistik(){
 	// hitung per skpd
 	foreach ($skpd as $skpd){
 		$skpd['sum'] = 0;
-		$skpd['count'] = 0
+		$skpd['count'] = 0;
 		foreach($penilaian as $p){
 			if ($skpd['nama'] == $p['unit_kerja']){
 				$skpd['sum'] += $p['nilai'];
diff --git a/P3/index.php b/P3/index.php
index 9021978..5a56500 100644
--- a/P3/index.php
+++ b/P3/index.php
@@ -67,7 +67,7 @@
             </div>
           </div>
         </div>
-        <?php require_once 'statistik_controller.php'; ?>
+        <?php require_once 'controller/statistik_controller.php'; ?>
         <div class="row">
           <div class="col-sm-8">
             <div class="panel panel-default">
-- 
GitLab