And this is my code, everything works good, everything is OK in my code. So I don't know what type should be my image
table in database.
if(isset($_POST["title"]) && isset($_POST["content"]) && isset($_POST["order"])){
$title = $_POST["title"];
$content = $_POST["content"];
$order = $_POST["order"];
$image = $_FILES['image'] ;
$title = addslashes($title);
$content = addslashes($content);
$order = (float)$order;
$image = addslashes(file_get_contents($_FILES['image']['tmp_name'])) ;
$sql = "INSERT INTO items (name,description,`price`, `image`)
VALUES ('$title','$content','$order', '{$image}')" ;
mysqli_query($conn,$sql) or die('something wrong' . mysql_error());;
echo mysqli_error($conn);
}
If you have any suggestions, please help, thank you