Hello guys, im sorry if my english grammar is bad. can someone help me to solve this code? [closed]

تبليغ
سؤال

يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.

تبليغ
‎إلغاء

i get error: Undefined array key “images” in C:xampphtdocseCommercecustomerconfirm.php on line 90
the code is “$images = $_FILES[‘images’];” you can see the below this

<div class=”col-md-9 mb-5″>
<div class=”card”>
<div class=”card-header text-center”>
<h5 class=”mt-4″>Confirm Payment</h5>
<p class=”text-muted”>If you have any questions, please feel free to <a href=”contact.php”>contact us</a>. Our customer service is working for you 24/7</p>
</div>
<div class=”card-body”>
<?php
if (isset($_POST[‘confirm_payment’])) {
$order_id = $_POST[‘order_id’];
$invoice_no = $_POST[‘invoice_no’];
$amount = $_POST[‘amount_sent’];
$payment_mode = $_POST[‘payment_mode’];
$ref_no = $_POST[‘ref_no’];
$images = $_FILES[‘images’];
$payment_date = $_POST[‘date’];

$complete = “Complete”;

$insert_payment = $getFromU->create(“payments”, array(“invoice_no” => $invoice_no, “amount” => $amount, “payment_mode” => $payment_mode, “ref_no” => $ref_no, “images” => $images, “payment_date” => $payment_date));

$update_customer_order = $getFromU->update_customer_order_status($complete, “customer_orders”, $order_id);

$update_pending_order = $getFromU->update_customer_order_status($complete, “pending_orders”, $order_id);

$_SESSION[‘update_customer_order_msg’] = “Your Payment has been Received. Order will be completed within 24 hours”;
header(‘Location: my_account.php?my_orders’);

}
?>

‫أضف إجابة

تصفح
تصفح

مجهول يجيب