the method I have is I create three input files which will be posted to three different column in database table.
Heres my parameter:
$additional_comments=$_POST['additional_comments'];
$image_one = $_FILES['image_one']['type'];
$image_two = $_FILES['image_two']['type'];
$image_three = $_FILES['image_three']['type'];
if($image=="image/jpeg" || $image=="image/jpg" || $image=="image/gif" || $image=="image/png")
{
$gambar_satu = $foldername . basename($_FILES['image_one']['name']);
$gambar_dua = $foldername . basename($_FILES['image_two']['name']);
$gambar_tiga = $foldername . basename($_FILES['image_three']['name']);
if ( move_uploaded_file
($_FILES['image']['tmp_name'], $gambar_satu)
($_FILES['image']['tmp_name'], $gambar_dua)
($_FILES['image']['tmp_name'], $gambar_tiga)
)
{
$stmt = $mysqli->prepare
("INSERT INTO table...
In the if (move_uploaded_file...
I am trying to insert three paramater there which they are $gambar_satu
, $gambar_dua
, $gambar_tiga
.
My question is how is the correct way to do this? Thanks in advance.