© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Jeremiah Ikwuje
Software Engineer
Keerthi Kamarthi
I think you should use $con->query($sql) instead of $con->prepare($sql)
$sql = "DELETE FROM upload_img WHERE id = ?"; if (!$result = $con->query($sql)) { die('Query failed: (' . $con->errno . ') ' . $con->error); }