tambah_proses.php 414 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
<?php
    include 'koneksi.php'; 
    
    $nama = $_POST['nama'];
    $kategori = $_POST['kategori'];
    $harga = $_POST['harga'];
    $image = $_FILES['gambar']['name'];
    
    move_uploaded_file($_FILES['gambar']['tmp_name'], 'picture/' .$image);
10
    mysqli_query($GLOBALS["___mysqli_ston"], "insert into menu values('', '$nama' ,'$harga', '$image', '$kategori')");
11 12
    header('Location: Admin_menu.php');
?>