Notice: Only variables should be passed by reference in

kali ini yang muncul pesan error Notice: Only variables should be passed by reference in C:\xampp\htdocs\Pemrograman Web (Pa Nurahman)\TSR\Project\formlaporan\printsk.php on line 175, help gan


<?php
	include('../koneksi/konek.php');
?>
<?php
# data tampil
if(isset($_GET['filter2'])){
$sk = isset($_GET['filter2']) ? $_GET['filter2'] : '';
$tahun = substr($sk,-4,4);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <title>Data Cetak sk</title>

  <style>
  body, .table1, .table2, .table3, .table7, .table9, .table10, h2, h3 {
    font-family: arial;
  }
  .table4, .table5, .table8 {
    font-family: arial narrow;
  }
  .table1 {
    border-top: 1px solid #330000;
    border-bottom: 1px solid #330000;
    font-size: 12px;
  }
  .table2, .table3 {
    font-size: 12px;
  }
  .table4 {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    font-size: 13px;
  }
  .table5 {
    font-size:15px;
  }
  .table6 {
    font-family: times new roman;
    font-size: 22px;
    letter-spacing: 3px;
  }
  .table7 {
    font-size:14px;
    letter-spacing: 3px;
  }
  .table8 {
    font-size:12px;
  }
  .table9 {
    font-size: 18px;
    padding-top: 0px;
    padding-bottom: 0px;
    letter-spacing: 4px;
  }
  .table10 {
    font-size: 12px;
    letter-spacing: 1px;
  }
  h2 {
    font-size: 25px;
  }
  h3 {
    font-size: 18px;
  }
  .td1 {
    border-right: 1px solid #330000;
    border-bottom: 1px solid #330000;
    padding-right: 1px;
    padding-left: 5px;
  }
  .container {
    margin: 0 auto;
    width: 90%;
    font-size: 12px;
  }
  </style>
</head>
  <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
    <tr>
      <td  rowspan=5 align="right" width=20%>
        <img SRC="../Logo+UNDA+Sampit.png" WIDTH="100" HEIGHT="99" BORDER="0" ALT="" align="center">
      </td>
      <td width=80% align="center"  class="table7"><b>YAYASAN PENDIDIKAN WIJAYA KESUMA</b></td>
    </tr>
    <tr valign="top">
      <td align="center" class="table6"><b>UNIVERSITAS DARWAN ALI</b></td>
    </tr>
    <tr valign="top">
      <td class="table8" align="center">
        <table width="80%">
          <tr>
            <td>Fakultas Ekonomi</td>
            <td>Fakultas Ilmu Komputer</td>
            <td>Fakultas Perikanan dan Ilmu Kelautan</td>
          </tr>
          <tr>
            <td>Fakultas Pertanian</td>
            <td>Fakultas Teknik</td>
            <td>Program Pascasarjana</td>
          </tr>
        </table>
    </tr>
    <tr valign="top">
      <td align="center" class="table8">Status Terakreditasi Berdasarkan SK. BAN-PT DEPDIKNAS RI. No. 051/SK/BAN-PT/Ak-XV/S/II/2013, Tanggal 14 Februari 2013</td>
    </tr>
    <tr valign="top">
      <td align="center" class="table10">Kampus : Jl. Batu Berlian No. 10 Telp. (0531) 33336, Fax. (0531) 33342 Sampit</td>
    </tr>
  </table>
  <hr width=95%><hr width=95%>
  <h3 align = "center"><u><b>Daftar Yudisum Periode <?php echo $tahun;?></b></u></h3>
  <table cellpadding="2" cellspacing="0">
      <tr>
        <td>No SK: </td>
        <td><?php echo $sk;?></td>
      </tr>
    </table>
    <br>
    <table width="100%" border="1" cellpadding="1" cellspacing="0" style="border-collapse:collapse">
      <tr>
        <th style="width:3em;">No</th>
        <th>Nama</th>
        <th>NPM</th>
        <th>IPK</th>
        <th>No Seri Ijazah</th>
        <th>Program Studi</th>
        <th>Program Studi</th>
      </tr>
      <?php
      include "../koneksi/konek.php";
      $no = 0;
	  if(isset($_GET['filter2'])){
	  $sk = $_GET['filter2'];
      $sql = "SELECT y.*, j.*, m.nama_mhs, p.nama_prodi
			  FROM   ijazah y, pengajuan j, mahasiswa m, prodi p
			  WHERE y.kd_ajuan=j.kd_ajuan
			  AND j.ktm = m.ktm
			  AND m.kode_prodi = p.kode_prodi
			  AND y.sk_yudis LIKE '%$sk%' ";
	  $result = mysqli_query($koneksi, $sql);
	  }
      # perulangan untuk data yang tampil
      while ($row = mysqli_fetch_assoc($result)) {
        $no++;
        extract($row);
        echo "<tr>";
          echo "<td align=\"center\">{$no}</td>";
          echo "<td>{$nama_mhs}</td>";
          echo "<td>{$ktm}</td>";
          echo "<td>{$ipk}</td>";
          echo "<td>{$no_seri}</td>";
          echo "<td>{$nama_prodi}</td>";
		  echo "<td>{$sk_yudis}</td>";
        echo "</tr>";
      }
	        ?>
    </table>
    <br />
    <table class="table2" align="left" width="40%" cellpadding="2" cellspacing="0">
    	<tr>
        <td>Diterbitkan di :</td>
      </tr>
    	<tr>
        <?php
        $nmeng = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
        $nmin = array('Januari', 'Pebruari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember');
		$tahun = substr($sk,-4,4);
        ?>
        <td>Sampit, <?php echo str_ireplace($nmeng, $nmin, $sk, date('d F Y'))?></td>
      </tr>
    </table>

</body>
</html>

oo iya yang filter2 itu ngambil dari hal sebelah .....


<?php
		if(isset($_POST['CARI2'])){
			$keyword = $_POST['keyword'];
			$sql = "SELECT * FROM laporan
					WHERE sk_yudis LIKE '%$keyword%'";
		} else {
			$sql = "SELECT * FROM laporan";
		}

    	$no=0;
		$tampil = mysqli_query($koneksi, $sql) or die(mysqli_error());
		$row_tampil = mysqli_fetch_array($tampil);
		$totalRows_tampil = mysqli_num_rows($tampil);
	?>

    	<?php
			if(isset($_POST['CARI'])){
				$filter = $_POST['keyword'];
			} else {
				$filter = "";
			}
		?>
        <?php
			if(isset($_POST['CARI2'])){
				$filter2 = $_POST['keyword'];
			} else {
				$filter2 = "";
			}
		?>
    	<iframe src="printjz.php?filter=<?php echo "$filter"; ?>" style="display:none;" name="cetak"></iframe>
    	<form name="cetak" class="cetak" method="post" action="">
        	<input class="btn btn-primary" type="submit" onclick="frames['cetak'].print()" value="Cetak Ijazah" />

    	</form>
        <iframe src="printsk.php?filter2=<?php echo "$filter2"; ?>" style="display:none;" name="cetak2"></iframe>
    	<form name="cetak2" class="cetak2" method="post" action="">
        	<input class="btn btn-primary" type="submit" onclick="frames['cetak2'].print()" value="Cetak Lampiran" />

    	</form>
   	  <form method="POST" action="">
            <input type="text" name="keyword" class="form-control" placeholder="Filter Melalui SK Yudisium" id="keyword">
            <button name="CARI2" class="btn btn-primary" type="submit" id="btn-search">CARI</button>
              <a href="" class="btn btn-warning">RESET</a>

   	  </form>
          	<form method="POST" action="">
            <input type="text" name="keyword" class="form-control" placeholder="Filter Melalui Tanggal Keluar" id="keyword">
  			<button name="CARI" class="btn btn-primary" type="submit" id="btn-search">CARI</button>
              <a href="" class="btn btn-warning">RESET</a>

       </form>

avatar haryprm
@haryprm

5 Kontribusi 0 Poin

Dipost 6 tahun yang lalu

Belum ada Jawaban. Jadi yang pertama Jawaban

Login untuk ikut Jawaban