Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include ("conn.php");
- $sqlsavestok=mysqli_query($conn,"select * from budidaya");
- if($sqlsavestok)
- {
- echo "OK";
- $tgl2 = date('Y-m-d', strtotime('+1 days', strtotime($tanggalmasuk)));
- $sqlulang=mysqli_query($conn,"select * from logbarang where nmbarang='$inventori' and (tanggal between '$tgl2' and '2017-08-31') order by tanggal asc")or die (mysqli_error($conn));
- if(mysqli_num_rows($sqlulang)>0)
- {
- while($dataloop=mysqli_fetch_array($sqlulang))
- {
- echo $dataloop['tanggal']." ".$dataloop['nmbarang']." ".$dataloop['stok']."<br>";
- }
- }
- else
- {
- echo "Errorx";
- }
- }
- else
- {
- echo "ERROR";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement