Jest sprawdzone czy user jest zalogowany tylko tego nie wstawiam,
Chodzi o to że po update zdjęcia profilowego w bazie danych nic sie nie zmienia
kolumna którą chciałbym aby zawierało zdjęcie to "profileimg" jest to MEDIUM BLOB
DB tabela "users":
https://imgur.com/a/MSlEOE4
Kod
updateimg.php
<?php require "../header.php"; ?> <form action="../includes/update.inc.php" method="post" enctype='multipart/form-data'> <input type="file" name="file"> <button type='submit' name='submit' style='max-width: 100px;'>Prześlij</button> </form>
update.inc.php
<?php require 'dbh.inc.php'; $img = $_POST['file']; $id = $_SESSION["userid"]; $update3 = "UPDATE users SET profileimg = '$img' WHERE usersId = '$id'"; $run3 = mysqli_query($conn, $update3); //$_SESSION["usersName"] = $_POST['name']; if($run3){ } else } ?>
PROSZĘ O POMOC BĘDĘ MEGA WDZIĘCZNY