مرحبا..

أرجوا توضيح الخطأ هنا لأنه لايرسل أي شيء لقاعدة البيانات

<?php

define('HOST','localhost');

define('USER','root');

define('PASS','');

define('DB','aaa');

$con = mysqli_connect(HOST,USER,PASS,DB) or die ('Unable to connect');

if($_SERVER['REQUEST_METHOD']=='POST'){

$image = $_POST['image'];

$sql = "INSERT INTO uploaded_images (image) VALUES ('$image')";

$stml = mysqli_prepare($con,$sql);

mysqli_stmt_bind_param($stml,"s",$image);

myslqi_stmt_execute($stml);

$check = mysqli_stmt_affected_rows($stml);

if($check == 1){

echo "Image Uploaded Successfully";

} else { echo "Error Uploading Image"; } mysqli_close($con); }else{ echo "Error";

}