PERBAIKAN

parent a2da0263
...@@ -12,11 +12,7 @@ ...@@ -12,11 +12,7 @@
$profil = 'images/'.$judul_artikel.'.jpg'; $profil = 'images/'.$judul_artikel.'.jpg';
} }
<<<<<<< HEAD
$tambah = mysql_query("INSERT INTO t_artikel VALUES('', '$judul_artikel', '$isi_artikel', NOW(), NULL, '$profil', '$username')") or die(mysql_error());
=======
$tambah = mysqli_query($koneksi, "INSERT INTO t_artikel VALUES('', '$judul_artikel', '$isi_artikel', NOW(), NULL, '$profil', '$username')") or die(mysqli_error()); $tambah = mysqli_query($koneksi, "INSERT INTO t_artikel VALUES('', '$judul_artikel', '$isi_artikel', NOW(), NULL, '$profil', '$username')") or die(mysqli_error());
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
if($tambah) { if($tambah) {
echo "<script>alert('Data artikel $judul_artikel berhasil disimpan'); window.location = 'processarticle.php'</script>"; echo "<script>alert('Data artikel $judul_artikel berhasil disimpan'); window.location = 'processarticle.php'</script>";
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
$profil = 'images/'.$judul.'.jpg'; $profil = 'images/'.$judul.'.jpg';
} }
$tambah = mysql_query("INSERT INTO t_buku VALUES('$isbn', '$judul', '$pengarang', '$penerbit', '$kategori', '$tahun', '$harga', '$jumlah', '$profil', '$keterangan', '$username')") or die(mysql_error()); $tambah = mysqli_query($koneksi, "INSERT INTO t_buku VALUES('$isbn', '$judul', '$pengarang', '$penerbit', '$kategori', '$tahun', '$harga', '$jumlah', '$profil', '$keterangan', '$username')") or die(mysqli_error());
if($tambah) { if($tambah) {
echo "<script>alert('Data buku $judul berhasil disimpan'); window.location = 'processbook.php'</script>"; echo "<script>alert('Data buku $judul berhasil disimpan'); window.location = 'processbook.php'</script>";
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
$sql = mysqli_query($koneksi, "SELECT * FROM t_artikel ORDER BY tanggal_dibuat DESC limit 8"); $sql = mysqli_query($koneksi, "SELECT * FROM t_artikel ORDER BY tanggal_dibuat DESC limit 8");
while($data = mysqli_fetch_array($sql)){ while($data = mysqli_fetch_array($sql)){
?> ?>
<div class="col-md-12 top_brand_left"> <div class="col-md-6 top_brand_left">
<div class="hover14 column"> <div class="hover14 column">
<div class="agile_top_brand_left_grid"> <div class="agile_top_brand_left_grid">
<div class="agile_top_brand_left_grid1"> <div class="agile_top_brand_left_grid1">
...@@ -38,11 +38,7 @@ ...@@ -38,11 +38,7 @@
<div class="snipcart-item block" > <div class="snipcart-item block" >
<div class="snipcart-thumb"> <div class="snipcart-thumb">
<div class="col-md-5"> <div class="col-md-5">
<<<<<<< HEAD
<a href="singlearticle.php?kd=<?php echo $data['id_artikel'];?>"><img class="col-md-4" src="<?php echo $data['gambar_artikel']; ?>" placeholder="Baca Selengkapnya Disini"/></a>
=======
<a href="singlearticle.php?kd=<?php echo $data['id_artikel'];?>"><img class="col-md-10" src="<?php echo $data['gambar_artikel']; ?>" placeholder="Baca Selengkapnya Disini"/></a> <a href="singlearticle.php?kd=<?php echo $data['id_artikel'];?>"><img class="col-md-10" src="<?php echo $data['gambar_artikel']; ?>" placeholder="Baca Selengkapnya Disini"/></a>
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
</div> </div>
<div class="col-md-7"> <div class="col-md-7">
<center><h4><?php echo $data['judul_artikel']; ?></h4></center><br> <center><h4><?php echo $data['judul_artikel']; ?></h4></center><br>
......
...@@ -27,16 +27,8 @@ ...@@ -27,16 +27,8 @@
<div class="container"> <div class="container">
<div class="agile_top_brands_grids"> <div class="agile_top_brands_grids">
<?php <?php
<<<<<<< HEAD
=======
<<<<<<< HEAD
$sql = mysqli_query($koneksi, "SELECT * FROM t_buku ORDER BY isbn ASC LIMIT 24"); $sql = mysqli_query($koneksi, "SELECT * FROM t_buku ORDER BY isbn ASC LIMIT 24");
while($data = mysqli_fetch_array($sql)){ while($data = mysqli_fetch_array($sql)){
=======
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
$sql = mysql_query("SELECT * FROM t_buku ORDER BY judul DESC LIMIT 21");
while($data = mysql_fetch_array($sql)){
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
?> ?>
<div class="col-md-3 top_brand_left"> <div class="col-md-3 top_brand_left">
<div class="hover14 column"> <div class="hover14 column">
...@@ -52,26 +44,12 @@ ...@@ -52,26 +44,12 @@
<figure> <figure>
<div class="snipcart-item block" > <div class="snipcart-item block" >
<div class="snipcart-thumb"> <div class="snipcart-thumb">
<<<<<<< HEAD
<a href="singlebook.php?kd=<?php echo $data['isbn'];?>"><img class="col-md-12" src="<?php echo $data['gambar']; ?>" /></a>
=======
<a href="singlebook.php?kd=<?php echo $data['isbn'];?>"><img class="col-md-12" src="<?php echo $data['gambar']; ?>" > <a href="singlebook.php?kd=<?php echo $data['isbn'];?>"><img class="col-md-12" src="<?php echo $data['gambar']; ?>" >
<<<<<<< HEAD
<center><h4><?php echo $data['judul']; ?></h4></center> <center><h4><?php echo $data['judul']; ?></h4></center>
<center><h4><?php echo $data['pengarang']; ?></h4></center> <center><h4><?php echo $data['pengarang']; ?></h4></center>
<center><h4><?php echo $data['tahun']; ?></h4></center> <center><h4><?php echo $data['tahun']; ?></h4></center>
<center><h4>Rp.<?php echo number_format($data['harga'],2,",",".");?></h4></center> <center><h4>Rp.<?php echo number_format($data['harga'],2,",",".");?></h4></center>
=======
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
<center><h5><?php echo $data['judul']; ?></h5></center>
<center><h5><?php echo $data['pengarang']; ?></h5></center>
<center><h5><?php echo $data['tahun']; ?></h5></center>
<center><h5>Rp.<?php echo number_format($data['harga'],2,",",".");?></h5></center>
<<<<<<< HEAD
=======
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
</a> </a>
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
</div> </div>
<div class="snipcart-details top_brand_home_details"> <div class="snipcart-details top_brand_home_details">
<a href="function.php?act=add&amp;barang_id=<?php echo $data['isbn']; ?>&amp;ref=checkout.php?kd=<?php echo $data['isbn'];?>"> <a href="function.php?act=add&amp;barang_id=<?php echo $data['isbn']; ?>&amp;ref=checkout.php?kd=<?php echo $data['isbn'];?>">
......
...@@ -8,11 +8,7 @@ ...@@ -8,11 +8,7 @@
<div class="container"> <div class="container">
<ol class="breadcrumb breadcrumb1 animated wow slideInLeft" data-wow-delay=".5s"> <ol class="breadcrumb breadcrumb1 animated wow slideInLeft" data-wow-delay=".5s">
<?php <?php
<<<<<<< HEAD
if (isset($_SESSION['pengunjung']) AND isset($_SESSION['pengunjung'])) {
=======
if (isset($_SESSION['pengunjung'])) { if (isset($_SESSION['pengunjung'])) {
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
echo ' echo '
<li><span><i class="fa fa-sign-in" aria-hidden="true"></i><a href="login.php"> Masuk</a></span></li> <li><span><i class="fa fa-sign-in" aria-hidden="true"></i><a href="login.php"> Masuk</a></span></li>
<li class="active">Daftar Kategori</li> '; <li class="active">Daftar Kategori</li> ';
...@@ -35,13 +31,8 @@ ...@@ -35,13 +31,8 @@
<h2>KATEGORI</h2> <h2>KATEGORI</h2>
<ul class="cate"> <ul class="cate">
<?php <?php
<<<<<<< HEAD
$sql = mysql_query("SELECT * FROM t_kategori ORDER BY id_kategori");
while($data = mysql_fetch_array($sql)){
=======
$sql = mysqli_query($koneksi, "SELECT * FROM t_kategori ORDER BY id_kategori"); $sql = mysqli_query($koneksi, "SELECT * FROM t_kategori ORDER BY id_kategori");
while($data = mysqli_fetch_array($sql)){ while($data = mysqli_fetch_array($sql)){
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
?> ?>
<li><a href="categories.php?kd=<?php echo $data['id_kategori'];?>"><i class="fa fa-arrow-right" aria-hidden="true"></i><?php echo $data['nama_kategori']; ?></a></li> <li><a href="categories.php?kd=<?php echo $data['id_kategori'];?>"><i class="fa fa-arrow-right" aria-hidden="true"></i><?php echo $data['nama_kategori']; ?></a></li>
<?php <?php
...@@ -54,13 +45,8 @@ ...@@ -54,13 +45,8 @@
<div class="agile_top_brands_grids"> <div class="agile_top_brands_grids">
<?php <?php
$id= $_GET['kd']; $id= $_GET['kd'];
<<<<<<< HEAD
$sql = mysql_query("SELECT * FROM t_buku WHERE kategori='$id' ORDER BY isbn");
while($data = mysql_fetch_array($sql)){
=======
$sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE kategori='$id' ORDER BY isbn"); $sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE kategori='$id' ORDER BY isbn");
while($data = mysqli_fetch_array($sql)){ while($data = mysqli_fetch_array($sql)){
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
?> ?>
<div class="col-md-4 top_brand_left"> <div class="col-md-4 top_brand_left">
<div class="hover14 column"> <div class="hover14 column">
...@@ -77,19 +63,12 @@ ...@@ -77,19 +63,12 @@
<div class="snipcart-item block" > <div class="snipcart-item block" >
<div class="snipcart-thumb"> <div class="snipcart-thumb">
<a href="singlebook.php?kd=<?php echo $data['isbn'];?>"><img class="col-md-12" src="<?php echo $data['gambar']; ?>" /></a> <a href="singlebook.php?kd=<?php echo $data['isbn'];?>"><img class="col-md-12" src="<?php echo $data['gambar']; ?>" /></a>
<<<<<<< HEAD
<center><h5><?php echo $data['judul']; ?></h5></center>
<center><h5><?php echo $data['pengarang']; ?></h5></center>
<center><h5><?php echo $data['tahun']; ?></h5></center>
<center><h5>Rp.<?php echo number_format($data['harga'],2,",",".");?></h5></center>
=======
<center> <center>
<h5><?php echo $data['judul']; ?></h5> <h5><?php echo $data['judul']; ?></h5>
<h5><?php echo $data['pengarang']; ?></h5> <h5><?php echo $data['pengarang']; ?></h5>
<h5><?php echo $data['tahun']; ?></h5> <h5><?php echo $data['tahun']; ?></h5>
<h5>Rp.<?php echo number_format($data['harga'],2,",",".");?></h5> <h5>Rp.<?php echo number_format($data['harga'],2,",",".");?></h5>
</center> </center>
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
</div> </div>
<div class="snipcart-details top_brand_home_details"> <div class="snipcart-details top_brand_home_details">
<a href="function.php?act=add&amp;barang_id=<?php echo $data['isbn']; ?>&amp;ref=checkout.php?kd=<?php echo $data['isbn'];?>"> <a href="function.php?act=add&amp;barang_id=<?php echo $data['isbn']; ?>&amp;ref=checkout.php?kd=<?php echo $data['isbn'];?>">
......
<?php <?php
require_once("koneksi.php"); require_once("koneksi.php");
$id=$_GET['id']; $id=$_GET['id'];
<<<<<<< HEAD
mysqli_query($koneksi, "DELETE FROM t_artikel where id_artikel='$id'"); mysqli_query($koneksi, "DELETE FROM t_artikel where id_artikel='$id'");
=======
mysql_query("DELETE FROM t_artikel where id_artikel='$id'");
<<<<<<< HEAD
=======
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
echo "<script>alert('Data artikel berhasil dihapus');window.location = 'processarticle.php'</script>"; echo "<script>alert('Data artikel berhasil dihapus');window.location = 'processarticle.php'</script>";
?> ?>
\ No newline at end of file
<?php <?php
require_once("koneksi.php"); require_once("koneksi.php");
$id=$_GET['id']; $id=$_GET['id'];
mysql_query("DELETE FROM t_buku where isbn='$id'"); mysqli_query($koneksi, "DELETE FROM t_buku where isbn='$id'");
echo "<script>alert('Data buku berhasil dihapus');window.location = 'processbook.php'</script>"; echo "<script>alert('Data buku berhasil dihapus');window.location = 'processbook.php'</script>";
?> ?>
\ No newline at end of file
<?php <?php
require_once("koneksi.php"); require_once("koneksi.php");
$id=$_GET['id']; $id=$_GET['id'];
<<<<<<< HEAD
mysqli_query($koneksi, "DELETE FROM t_user where id_user='$id'"); mysqli_query($koneksi, "DELETE FROM t_user where id_user='$id'");
=======
mysql_query("DELETE FROM t_user where id_user='$id'");
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
echo "<script>alert('Akun berhasil dihapus');window.location = 'processmember.php'</script>"; echo "<script>alert('Akun berhasil dihapus');window.location = 'processmember.php'</script>";
?> ?>
\ No newline at end of file
...@@ -20,20 +20,6 @@ ...@@ -20,20 +20,6 @@
<div class="login-form-grids"> <div class="login-form-grids">
<h5>Data Artikel</h5> <h5>Data Artikel</h5>
<?php <?php
<<<<<<< HEAD
$id_article = mysql_real_escape_string($_GET['id']);
$cari = mysql_query("SELECT * FROM t_artikel WHERE id_artikel='$id_article'")or die(mysql_error());
while($data = mysql_fetch_array($cari)){
?>
<form action="editarticle_process.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="id" placeholder="id_artikel" value="<?php echo $data['id_artikel'] ?>" >
<b>Judul Artikel :</b>
<input type="text" name="judul_artikel" placeholder="Judul Artikel" value="<?php echo $data['judul_artikel'] ?>" >
<b><br>Isi Artikel : <br></b>
<textarea name="isi_artikel" placeholder="<?php echo $data['isi_artikel'] ?>" value="<?php echo $data['isi_artikel'] ?>"></textarea>
<b><br>Gambar : <br></b>
<input type="file" name="gambar_artikel" value=" ">
=======
$id_article = mysqli_real_escape_string($koneksi, $_GET['id']); $id_article = mysqli_real_escape_string($koneksi, $_GET['id']);
$cari = mysqli_query($koneksi, "SELECT * FROM t_artikel WHERE id_artikel='$id_article'")or die(mysqli_error()); $cari = mysqli_query($koneksi, "SELECT * FROM t_artikel WHERE id_artikel='$id_article'")or die(mysqli_error());
while($data = mysqli_fetch_array($cari)){ while($data = mysqli_fetch_array($cari)){
...@@ -46,7 +32,6 @@ ...@@ -46,7 +32,6 @@
<textarea name="isi_artikel" placeholder="<?php echo $data['isi_artikel'] ?>" value="<?php echo $data['isi_artikel'] ?>"></textarea> <textarea name="isi_artikel" placeholder="<?php echo $data['isi_artikel'] ?>" value="<?php echo $data['isi_artikel'] ?>"></textarea>
<b><br>Gambar : <br></b> <b><br>Gambar : <br></b>
<input type="file" name="gambar_artikel" accept="img/*" value="<?php echo $data['gambar_artikel'] ?>" > <input type="file" name="gambar_artikel" accept="img/*" value="<?php echo $data['gambar_artikel'] ?>" >
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
<input type="submit" name="edit" value="edit"> <input type="submit" name="edit" value="edit">
</form> </form>
<?php <?php
......
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
session_start(); session_start();
include 'koneksi.php'; include 'koneksi.php';
<<<<<<< HEAD
if(isset($_POST['edit'])) {
=======
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
$username = $_SESSION['username']; $username = $_SESSION['username'];
$id = $_POST['id']; $id = $_POST['id'];
$judul_artikel = $_POST['judul_artikel']; $judul_artikel = $_POST['judul_artikel'];
...@@ -17,19 +13,11 @@ ...@@ -17,19 +13,11 @@
$profil = 'images/'.$judul_artikel.'.jpg'; $profil = 'images/'.$judul_artikel.'.jpg';
} }
<<<<<<< HEAD
$edit = mysql_query("UPDATE t_artikel SET judul_artikel='$judul_artikel', isi_artikel='$isi_artikel', tanggal_diedit=NOW(), gambar_artikel='$profil', username='$username' WHERE id_artikel='$id'") or die(mysql_error());
=======
$edit = mysqli_query($koneksi, "UPDATE t_artikel SET judul_artikel='$judul_artikel', isi_artikel='$isi_artikel', tanggal_diedit=NOW(), gambar_artikel='$profil', username='$username' WHERE id_artikel='$id'") or die(mysqli_error()); $edit = mysqli_query($koneksi, "UPDATE t_artikel SET judul_artikel='$judul_artikel', isi_artikel='$isi_artikel', tanggal_diedit=NOW(), gambar_artikel='$profil', username='$username' WHERE id_artikel='$id'") or die(mysqli_error());
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
if($edit) { if($edit) {
echo "<script>alert('Data artikel $judul_artikel berhasil disimpan');window.location = 'processarticle.php'</script>"; echo "<script>alert('Data artikel $judul_artikel berhasil disimpan');window.location = 'processarticle.php'</script>";
} }
else { else {
echo "<script>alert('Gagal menyimpan data artikel !'); window.location = 'editarticle.php'</script>"; echo "<script>alert('Gagal menyimpan data artikel !'); window.location = 'editarticle.php'</script>";
} }
<<<<<<< HEAD
}
=======
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
?> ?>
\ No newline at end of file
...@@ -20,30 +20,30 @@ ...@@ -20,30 +20,30 @@
<div class="login-form-grids"> <div class="login-form-grids">
<h5>Data Buku</h5> <h5>Data Buku</h5>
<?php <?php
$id_buku = mysql_real_escape_string($_GET['id']); $id_buku = mysqli_real_escape_string($koneksi, $_GET['id']);
$cari = mysql_query("SELECT * FROM t_buku WHERE isbn='$id_buku'")or die(mysql_error()); $cari = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE isbn='$id_buku'")or die(mysqli_error());
while($data = mysql_fetch_array($cari)) { while($data = mysqli_fetch_array($cari)) {
?> ?>
<form action="editbook_process.php" method="POST" enctype="multipart/form-data"> <form action="editbook_process.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="id" placeholder="ISBN" value="<?php echo $data['isbn'] ?>" > <input type="hidden" name="id" placeholder="ISBN" value="<?php echo $data['isbn'] ?>" >
<b>Judul Buku : </b> <b>Judul Buku : </b>
<input type="text" name="judul" placeholder="Judul Buku" value="<?php echo $data['judul'] ?>" > <input type="text" name="judul" placeholder="Judul Buku" value="<?php echo $data['judul'] ?>" >
<b><br>Nama Pengarang :</b> <b><br>Nama Pengarang :</b>
<input type="text" name="pengarang" placeholder="Nama Pengarang" value="<?php echo $data['pengarang'] ?>" > <input type="text" name="pengarang" placeholder="Nama Pengarang" value="<?php echo $data['pengarang'] ?>" >
<b><br>Nama Penerbit :</b> <b><br>Nama Penerbit :</b>
<input type="text" name="penerbit" placeholder="Nama Penerbit" value="<?php echo $data['penerbit'] ?>" > <input type="text" name="penerbit" placeholder="Nama Penerbit" value="<?php echo $data['penerbit'] ?>" >
<b><br>Kategori Buku :</b> <b><br>Kategori Buku :</b>
<input type="text" name="kategori" placeholder="Kategori Buku" value="<?php echo $data['kategori'] ?>" > <input type="text" name="kategori" placeholder="Kategori Buku" value="<?php echo $data['kategori'] ?>" >
<b><br>Tahun Terbit :</b> <b><br>Tahun Terbit :</b>
<input type="text" name="tahun" placeholder="Tahun Terbit" value="<?php echo $data['tahun'] ?>" > <input type="text" name="tahun" placeholder="Tahun Terbit" value="<?php echo $data['tahun'] ?>" >
<b><br>Harga per Eksemplar :</b> <b><br>Harga per Eksemplar :</b>
<input type="text" name="harga" placeholder="Harga per Eksemplar" value="<?php echo $data['harga'] ?>" > <input type="text" name="harga" placeholder="Harga per Eksemplar" value="<?php echo $data['harga'] ?>" >
<b><br>Jumlah Tersedia :</b> <b><br>Jumlah Tersedia :</b>
<input type="text" name="jumlah" placeholder="Jumlah Tersedia" value="<?php echo $data['jumlah'] ?>" > <input type="text" name="jumlah" placeholder="Jumlah Tersedia" value="<?php echo $data['jumlah'] ?>" >
<b><br>Keterangan Buku :</b> <b><br>Keterangan Buku :</b>
<input type="text" name="keterangan" placeholder="Keterangan Buku" value="<?php echo $data['keterangan'] ?>" > <input type="text" name="keterangan" placeholder="Keterangan Buku" value="<?php echo $data['keterangan'] ?>" >
<b><br>Gambar : <br><br></b> <b><br>Gambar : <br><br></b>
<input type="file" name="gambar" accept="img/*" required> <input type="file" name="gambar" accept="img/*" value="<?php echo $data['gambar'] ?>" >
<input type="submit" name="edit" value="edit"> <input type="submit" name="edit" value="edit">
</form> </form>
<?php <?php
......
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
session_start(); session_start();
include 'koneksi.php'; include 'koneksi.php';
<<<<<<< HEAD
if(isset($_POST['edit'])) {
=======
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
$username = $_SESSION['username']; $username = $_SESSION['username'];
$id = $_POST['id']; $id = $_POST['id'];
$judul = $_POST['judul']; $judul = $_POST['judul'];
...@@ -22,16 +18,12 @@ ...@@ -22,16 +18,12 @@
$profil = 'images/'.$judul.'.jpg'; $profil = 'images/'.$judul.'.jpg';
} }
$edit = mysql_query("UPDATE t_buku SET judul='$judul', pengarang='$pengarang', penerbit='$penerbit', kategori='$kategori', tahun='$tahun', harga='$harga', jumlah='$jumlah', gambar='$profil', keterangan='$keterangan', username='$username' WHERE isbn='$id'") or die(mysql_error()); $edit = mysqli_query($koneksi, "UPDATE t_buku SET judul='$judul', pengarang='$pengarang', penerbit='$penerbit', kategori='$kategori', tahun='$tahun', harga='$harga', jumlah='$jumlah', gambar='$profil', keterangan='$keterangan', username='$username' WHERE isbn='$id'") or die(mysqli_error());
if($edit) { if($edit) {
echo "<script>alert('Data buku $judul berhasil disimpan');window.location = 'processbook.php'</script>"; echo "<script>alert('Data buku $judul berhasil disimpan');window.location = 'processbook.php'</script>";
} }
else { else {
echo "<script>alert('Gagal menyimpan data buku !'); window.location = 'editbook.php'</script>"; echo "<script>alert('Gagal menyimpan data buku !'); window.location = 'editbook.php'</script>";
} }
<<<<<<< HEAD
}
=======
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
?> ?>
\ No newline at end of file
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
<div class="login-form-grids"> <div class="login-form-grids">
<h5>Informasi Data Diri</h5> <h5>Informasi Data Diri</h5>
<?php <?php
$id_nama = mysql_real_escape_string($_GET['id']); $id_nama = mysqli_real_escape_string($koneksi, $_GET['id']);
$cari = mysql_query("SELECT * FROM t_user WHERE id_user='$id_nama'")or die(mysql_error()); $cari = mysqli_query($koneksi, "SELECT * FROM t_user WHERE id_user='$id_nama'")or die(mysqli_error());
while($data = mysql_fetch_array($cari)) { while($data = mysqli_fetch_array($cari)) {
?> ?>
<form action="editprofile_process.php" method="POST"> <form action="editprofile_process.php" method="POST">
<input type="hidden" name="id" placeholder="ID User" value="<?php echo $data['id_user'] ?>" > <input type="hidden" name="id" placeholder="ID User" value="<?php echo $data['id_user'] ?>" >
......
...@@ -2,23 +2,6 @@ ...@@ -2,23 +2,6 @@
session_start(); session_start();
include 'koneksi.php'; include 'koneksi.php';
<<<<<<< HEAD
if(isset($_POST['edit'])) {
$username = $_SESSION['username'];
$id = $_POST['id'];
$nama_lengkap = $_POST['nama_lengkap'];
$alamat = $_POST['alamat'];
$nomor_ponsel = $_POST['nomor_ponsel'];
$email = $_POST['email'];
$edit = mysql_query("UPDATE t_user SET nama_lengkap='$nama_lengkap', email='$email', alamat='$alamat', nomor_ponsel='$nomor_ponsel' WHERE id_user='$id'") or die(mysql_error());
if($edit) {
echo "sukses";
}
else {
echo "<script>alert('Gagal menyimpan data diri !'); window.location = 'editprofile.php'</script>";
}
=======
$username = $_SESSION['username']; $username = $_SESSION['username'];
$id = $_POST['id']; $id = $_POST['id'];
$nama_lengkap = $_POST['nama_lengkap']; $nama_lengkap = $_POST['nama_lengkap'];
...@@ -26,12 +9,11 @@ include 'koneksi.php'; ...@@ -26,12 +9,11 @@ include 'koneksi.php';
$nomor_ponsel = $_POST['nomor_ponsel']; $nomor_ponsel = $_POST['nomor_ponsel'];
$email = $_POST['email']; $email = $_POST['email'];
$edit = mysql_query("UPDATE t_user SET nama_lengkap='$nama_lengkap', email='$email', alamat='$alamat', nomor_ponsel='$nomor_ponsel' WHERE id_user='$id'") or die(mysql_error()); $edit = mysqli_query($koneksi, "UPDATE t_user SET nama_lengkap='$nama_lengkap', email='$email', alamat='$alamat', nomor_ponsel='$nomor_ponsel' WHERE id_user='$id'") or die(mysqli_error());
if($edit) { if($edit) {
echo "sukses"; echo "sukses";
} }
else { else {
echo "<script>alert('Gagal menyimpan data diri !'); window.location = 'editprofile.php'</script>"; echo "<script>alert('Gagal menyimpan data diri !'); window.location = 'editprofile.php'</script>";
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
} }
?> ?>
\ No newline at end of file
...@@ -104,20 +104,10 @@ ...@@ -104,20 +104,10 @@
<?php <?php
if(isset($_GET['cari'])){ if(isset($_GET['cari'])){
$cari = mysql_real_escape_string($_GET['cari']); $cari = mysql_real_escape_string($_GET['cari']);
<<<<<<< HEAD
$query = mysql_query("SELECT * FROM t_buku, t_artikel WHERE nama LIKE '$cari'");
=======
<<<<<<< HEAD
$query = mysqli_query($koneksi, "SELECT * FROM t_buku, t_artikel WHERE nama LIKE '$cari'"); $query = mysqli_query($koneksi, "SELECT * FROM t_buku, t_artikel WHERE nama LIKE '$cari'");
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
} }
?> ?>
<!-- <!--
=======
$query = mysql_query("SELECT * FROM t_buku, t_artikel WHERE nama LIKE '$cari'");
}
?>
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
<div class="w3l_search"> <div class="w3l_search">
<form action="#" method="post"> <form action="#" method="post">
<input type="search" name="Search" placeholder="Cari Buku" required=""> <input type="search" name="Search" placeholder="Cari Buku" required="">
...@@ -127,13 +117,7 @@ ...@@ -127,13 +117,7 @@
<div class="clearfix"></div> <div class="clearfix"></div>
</form> </form>
</div> </div>
<<<<<<< HEAD
--> -->
<<<<<<< HEAD
=======
=======
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
<div class="clearfix"> </div> <div class="clearfix"> </div>
</div> </div>
</div> </div>
...@@ -160,13 +144,9 @@ ...@@ -160,13 +144,9 @@
echo ' echo '
<li><a href=processbook.php>Kelola Data Buku</a><br></li> <li><a href=processbook.php>Kelola Data Buku</a><br></li>
<li><a href=processarticle.php>Kelola Data Artikel</a><br></li> <li><a href=processarticle.php>Kelola Data Artikel</a><br></li>
<<<<<<< HEAD
<li><a href="processorder.php">Kelola Data Pesanan</a><br></li>
=======
<li><a href="processorder.php">Kelola Data Pesanan</a><br></li> <li><a href="processorder.php">Kelola Data Pesanan</a><br></li>
<li><a href="processmember.php">Kelola Data Pelanggan</a><br></li> <li><a href="processmember.php">Kelola Data Pelanggan</a><br></li>
<li><a href="processcomment.php">Kelola Data Komentar</a><br></li> <li><a href="processcomment.php">Kelola Data Komentar</a><br></li>
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
' ; ' ;
} }
else { else {
......
images/Asal Usul Sejarah Biola.jpg

5.05 KB | W: | H:

images/Asal Usul Sejarah Biola.jpg

9.28 KB | W: | H:

images/Asal Usul Sejarah Biola.jpg
images/Asal Usul Sejarah Biola.jpg
images/Asal Usul Sejarah Biola.jpg
images/Asal Usul Sejarah Biola.jpg
  • 2-up
  • Swipe
  • Onion skin
images/Khasiat Bawang Bombay.jpg

5.65 KB | W: | H:

images/Khasiat Bawang Bombay.jpg

16.7 KB | W: | H:

images/Khasiat Bawang Bombay.jpg
images/Khasiat Bawang Bombay.jpg
images/Khasiat Bawang Bombay.jpg
images/Khasiat Bawang Bombay.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -43,17 +43,8 @@ ...@@ -43,17 +43,8 @@
</div> </div>
<div class="agile_top_brands_grids"> <div class="agile_top_brands_grids">
<?php <?php
<<<<<<< HEAD
$sql = mysql_query("SELECT * FROM t_buku WHERE keterangan = 2 AND jumlah != 0 ORDER BY isbn DESC limit 6");
=======
<<<<<<< HEAD
$sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE keterangan = 2 AND jumlah != 0 ORDER BY jumlah ASC LIMIT 6"); $sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE keterangan = 2 AND jumlah != 0 ORDER BY jumlah ASC LIMIT 6");
while($data = mysqli_fetch_array($sql)){ while($data = mysqli_fetch_array($sql)){
=======
$sql = mysql_query("SELECT * FROM t_buku WHERE keterangan = 2 AND jumlah != 0 ORDER BY jumlah ASC LIMIT 6");
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
while($data = mysql_fetch_array($sql)){
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
?> ?>
<div class="col-md-4 top_brand_left"> <div class="col-md-4 top_brand_left">
<div class="hover14 column"> <div class="hover14 column">
...@@ -95,17 +86,8 @@ ...@@ -95,17 +86,8 @@
</div> </div>
<div class="agile_top_brands_grids"> <div class="agile_top_brands_grids">
<?php <?php
<<<<<<< HEAD
$sql = mysql_query("SELECT * FROM t_buku WHERE keterangan = 3 AND jumlah != 0 ORDER BY harga DESC limit 6");
=======
<<<<<<< HEAD
$sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE keterangan = 3 AND jumlah != 0 ORDER BY harga ASC LIMIT 6"); $sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE keterangan = 3 AND jumlah != 0 ORDER BY harga ASC LIMIT 6");
while($data = mysqli_fetch_array($sql)){ while($data = mysqli_fetch_array($sql)){
=======
$sql = mysql_query("SELECT * FROM t_buku WHERE keterangan = 3 AND jumlah != 0 ORDER BY harga ASC LIMIT 6");
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
while($data = mysql_fetch_array($sql)){
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
?> ?>
<div class="col-md-4 top_brand_left"> <div class="col-md-4 top_brand_left">
<div class="hover14 column"> <div class="hover14 column">
...@@ -152,17 +134,8 @@ ...@@ -152,17 +134,8 @@
<h3>Rilis Terbaru</h3> <h3>Rilis Terbaru</h3>
<div class="agile_top_brands_grids"> <div class="agile_top_brands_grids">
<?php <?php
<<<<<<< HEAD
$sql = mysql_query("SELECT * FROM t_buku WHERE keterangan = 4 AND jumlah != 0 ORDER BY isbn DESC limit 4");
=======
<<<<<<< HEAD
$sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE keterangan = 4 AND jumlah != 0 ORDER BY harga ASC LIMIT 4"); $sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE keterangan = 4 AND jumlah != 0 ORDER BY harga ASC LIMIT 4");
while($data = mysqli_fetch_array($sql)){ while($data = mysqli_fetch_array($sql)){
=======
$sql = mysql_query("SELECT * FROM t_buku WHERE keterangan = 4 AND jumlah != 0 ORDER BY harga ASC LIMIT 4");
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
while($data = mysql_fetch_array($sql)){
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
?> ?>
<div class="col-md-3 top_brand_left-1"> <div class="col-md-3 top_brand_left-1">
<div class="hover14 column"> <div class="hover14 column">
......
...@@ -16,15 +16,7 @@ ...@@ -16,15 +16,7 @@
<!-- Page --> <!-- Page -->
<?php <?php
$per_hal = 5; $per_hal = 5;
<<<<<<< HEAD
$jumlah_record = mysql_query("SELECT COUNT(*) from t_artikel");
=======
<<<<<<< HEAD
$jumlah_record = mysqli_query($koneksi, "SELECT * FROM t_artikel"); $jumlah_record = mysqli_query($koneksi, "SELECT * FROM t_artikel");
=======
$jumlah_record = mysql_query("SELECT COUNT(*) FROM t_artikel");
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
$no = 1; $no = 1;
$jum = mysqli_num_rows($jumlah_record); $jum = mysqli_num_rows($jumlah_record);
$halaman = ceil($jum / $per_hal); $halaman = ceil($jum / $per_hal);
...@@ -58,17 +50,8 @@ ...@@ -58,17 +50,8 @@
</tr> </tr>
</thead> </thead>
<?php <?php
<<<<<<< HEAD
$tampil = mysql_query("SELECT * FROM t_artikel limit $start, $per_hal");
=======
<<<<<<< HEAD
$tampil = mysqli_query($koneksi, "SELECT * FROM t_artikel LIMIT $start, $per_hal"); $tampil = mysqli_query($koneksi, "SELECT * FROM t_artikel LIMIT $start, $per_hal");
while($data = mysqli_fetch_array($tampil)) { while($data = mysqli_fetch_array($tampil)) {
=======
$tampil = mysql_query("SELECT * FROM t_artikel LIMIT $start, $per_hal");
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
while($data = mysql_fetch_array($tampil)) {
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
?> ?>
<tr class="rem1"> <tr class="rem1">
<td class="invert"><?php echo $no++; ?></td> <td class="invert"><?php echo $no++; ?></td>
......
...@@ -16,15 +16,7 @@ ...@@ -16,15 +16,7 @@
<!-- Page --> <!-- Page -->
<?php <?php
$per_hal = 5; $per_hal = 5;
<<<<<<< HEAD
$jumlah_record = mysql_query("SELECT COUNT(*) from t_buku");
=======
<<<<<<< HEAD
$jumlah_record = mysqli_query($koneksi, "SELECT * FROM t_buku"); $jumlah_record = mysqli_query($koneksi, "SELECT * FROM t_buku");
=======
$jumlah_record = mysql_query("SELECT COUNT(*) FROM t_buku");
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
$no = 1; $no = 1;
$jum = mysqli_num_rows($jumlah_record); $jum = mysqli_num_rows($jumlah_record);
$halaman = ceil($jum / $per_hal); $halaman = ceil($jum / $per_hal);
...@@ -42,16 +34,8 @@ ...@@ -42,16 +34,8 @@
<td>Total Dana</td> <td>Total Dana</td>
<td>:<b> <td>:<b>
<?php <?php
<<<<<<< HEAD
=======
<<<<<<< HEAD
$modal = mysqli_query($koneksi, "SELECT SUM(harga) AS total FROM t_buku"); $modal = mysqli_query($koneksi, "SELECT SUM(harga) AS total FROM t_buku");
$data = mysqli_fetch_array($modal); $data = mysqli_fetch_array($modal);
=======
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
$modal = mysql_query("SELECT SUM(harga) AS total FROM t_buku");
$data = mysql_fetch_array($modal);
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
echo " Rp.". number_format($data['total']).",-"; echo " Rp.". number_format($data['total']).",-";
?> ?>
</b></td> </b></td>
...@@ -80,17 +64,8 @@ ...@@ -80,17 +64,8 @@
</tr> </tr>
</thead> </thead>
<?php <?php
<<<<<<< HEAD
$tampil = mysql_query("SELECT * FROM t_buku limit $start, $per_hal");
=======
<<<<<<< HEAD
$tampil = mysqli_query($koneksi, "SELECT * FROM t_buku LIMIT $start, $per_hal"); $tampil = mysqli_query($koneksi, "SELECT * FROM t_buku LIMIT $start, $per_hal");
while($data = mysqli_fetch_array($tampil)) { while($data = mysqli_fetch_array($tampil)) {
=======
$tampil = mysql_query("SELECT * FROM t_buku LIMIT $start, $per_hal");
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
while($data = mysql_fetch_array($tampil)) {
>>>>>>> 15d7b3f97b8965f794ae3976192fb53968efb9c6
?> ?>
<tr class="rem1"> <tr class="rem1">
<td class="invert"><?php echo $no++; ?></td> <td class="invert"><?php echo $no++; ?></td>
......
...@@ -8,11 +8,7 @@ ...@@ -8,11 +8,7 @@
<div class="container"> <div class="container">
<ol class="breadcrumb breadcrumb1 animated wow slideInLeft" data-wow-delay=".5s"> <ol class="breadcrumb breadcrumb1 animated wow slideInLeft" data-wow-delay=".5s">
<?php <?php
<<<<<<< HEAD
if (isset($_SESSION['pengunjung']) AND isset($_SESSION['pengunjung'])) {
=======
if (isset($_SESSION['pengunjung'])) { if (isset($_SESSION['pengunjung'])) {
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
echo ' echo '
<li><span><i class="fa fa-sign-in" aria-hidden="true"></i><a href="login.php"> Masuk</a></span></li> <li><span><i class="fa fa-sign-in" aria-hidden="true"></i><a href="login.php"> Masuk</a></span></li>
<li class="active">Daftar Penerbit</li> '; <li class="active">Daftar Penerbit</li> ';
...@@ -35,13 +31,8 @@ ...@@ -35,13 +31,8 @@
<h2>PENERBIT</h2> <h2>PENERBIT</h2>
<ul class="cate"> <ul class="cate">
<?php <?php
<<<<<<< HEAD
$sql = mysql_query("SELECT * FROM t_penerbit ORDER BY id_penerbit");
while($data = mysql_fetch_array($sql)){
=======
$sql = mysqli_query($koneksi, "SELECT * FROM t_penerbit ORDER BY id_penerbit"); $sql = mysqli_query($koneksi, "SELECT * FROM t_penerbit ORDER BY id_penerbit");
while($data = mysqli_fetch_array($sql)){ while($data = mysqli_fetch_array($sql)){
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
?> ?>
<li><a href="publisher.php?kd=<?php echo $data['id_penerbit'];?>"><i class="fa fa-arrow-right" aria-hidden="true"></i><?php echo $data['nama_penerbit']; ?></a></li> <li><a href="publisher.php?kd=<?php echo $data['id_penerbit'];?>"><i class="fa fa-arrow-right" aria-hidden="true"></i><?php echo $data['nama_penerbit']; ?></a></li>
<?php <?php
...@@ -54,17 +45,10 @@ ...@@ -54,17 +45,10 @@
<div class="agile_top_brands_grids"> <div class="agile_top_brands_grids">
<?php <?php
$id= $_GET['kd']; $id= $_GET['kd'];
<<<<<<< HEAD
$sql = mysql_query("SELECT * FROM t_buku WHERE penerbit='$id' ORDER BY isbn");
while($data = mysql_fetch_array($sql)){
?>
<div class="col-md-6 top_brand_left">
=======
$sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE penerbit='$id' ORDER BY isbn"); $sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE penerbit='$id' ORDER BY isbn");
while($data = mysqli_fetch_array($sql)){ while($data = mysqli_fetch_array($sql)){
?> ?>
<div class="col-md-4 top_brand_left"> <div class="col-md-4 top_brand_left">
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
<div class="hover14 column"> <div class="hover14 column">
<div class="agile_top_brand_left_grid"> <div class="agile_top_brand_left_grid">
<?php <?php
...@@ -80,19 +64,12 @@ ...@@ -80,19 +64,12 @@
<div class="snipcart-thumb"> <div class="snipcart-thumb">
<a href="singlebook.php?kd=<?php echo $data['isbn'];?>"><img class="col-md-12" src="<?php echo $data['gambar']; ?>" /></a> <a href="singlebook.php?kd=<?php echo $data['isbn'];?>"><img class="col-md-12" src="<?php echo $data['gambar']; ?>" /></a>
<br> <br>
<<<<<<< HEAD
<h4><?php echo $data['judul']; ?></h4>
<h4><?php echo $data['pengarang']; ?></h4>
<h4><?php echo $data['tahun']; ?></h4>
<h4>Rp.<?php echo number_format($data['harga'],2,",",".");?></h4>
=======
<center> <center>
<h5><?php echo $data['judul']; ?></h5> <h5><?php echo $data['judul']; ?></h5>
<h5><?php echo $data['pengarang']; ?></h5> <h5><?php echo $data['pengarang']; ?></h5>
<h5><?php echo $data['tahun']; ?></h5> <h5><?php echo $data['tahun']; ?></h5>
<h5>Rp.<?php echo number_format($data['harga'],2,",",".");?></h5> <h5>Rp.<?php echo number_format($data['harga'],2,",",".");?></h5>
</center> </center>
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
</div> </div>
<div class="snipcart-details top_brand_home_details"> <div class="snipcart-details top_brand_home_details">
<a href="function.php?act=add&amp;barang_id=<?php echo $data['isbn']; ?>&amp;ref=checkout.php?kd=<?php echo $data['isbn'];?>"> <a href="function.php?act=add&amp;barang_id=<?php echo $data['isbn']; ?>&amp;ref=checkout.php?kd=<?php echo $data['isbn'];?>">
......
...@@ -12,11 +12,7 @@ ...@@ -12,11 +12,7 @@
<div class="checkout-left-basket"> <div class="checkout-left-basket">
<h4>Struk Pemesanan</h4> <h4>Struk Pemesanan</h4>
<?php <?php
<<<<<<< HEAD
$total = 0;
=======
$total = 0; $total = 0;
>>>>>>> 4b7fe59af7879ff07236a4f5dfc72f371b8d197a
if (isset($_SESSION['items'])) { if (isset($_SESSION['items'])) {
foreach ($_SESSION['items'] as $key => $val) { foreach ($_SESSION['items'] as $key => $val) {
$query = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE isbn = '$key'"); $query = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE isbn = '$key'");
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<div class="container"> <div class="container">
<div class="agileinfo_single"> <div class="agileinfo_single">
<?php <?php
$query = mysql_query("SELECT * FROM t_buku, t_kategori, t_penerbit WHERE isbn = '$_GET[kd]'"); $query = mysqli_query($koneksi, "SELECT * FROM t_buku, t_kategori, t_penerbit WHERE isbn = '$_GET[kd]'");
$data = mysql_fetch_array($query); $data = mysqli_fetch_array($query);
?> ?>
<div class="col-md-2 agileinfo_single_left"> <div class="col-md-2 agileinfo_single_left">
<img src="<?php echo $data['gambar']; ?>" class="img-responsive" /> <img src="<?php echo $data['gambar']; ?>" class="img-responsive" />
...@@ -53,12 +53,6 @@ ...@@ -53,12 +53,6 @@
echo '<input type="submit" name="simpan" value="Tambah" class="button" />'; echo '<input type="submit" name="simpan" value="Tambah" class="button" />';
} ?> } ?>
</div> </div>
<div class="snipcart-details top_brand_home_details">
<a href="function.php?act=add&amp;barang_id=<?php echo $data['isbn']; ?>&amp;ref=checkout.php?kd=<?php echo $data['isbn'];?>" >
<?php if ($data['jumlah'] >= 1) {
echo '<input type="submit" name="simpan" value="Tambah" class="button" />';
} ?>
</div>
</div> </div>
</div> </div>
<div class="clearfix"> </div> <div class="clearfix"> </div>
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
<div class="agileinfo_single"> <div class="agileinfo_single">
<?php <?php
$username = $_SESSION['username']; $username = $_SESSION['username'];
$query = mysql_query("SELECT * FROM t_user, t_penerbit WHERE username = '$username'"); $query = mysqli_query($koneksi, "SELECT * FROM t_user, t_penerbit WHERE username = '$username'");
$data = mysql_fetch_array($query); $data = mysqli_fetch_array($query);
?> ?>
<div class="col-md-5 agileinfo_single_right"> <div class="col-md-5 agileinfo_single_right">
Nama Lengkap : <h3><?php echo $data['nama_lengkap']; ?></h3><br> Nama Lengkap : <h3><?php echo $data['nama_lengkap']; ?></h3><br>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment