prepare("UPDATE mar_user SET floppyData=? WHERE username=?"); $stmt->bindValue(1, $file, PDO::PARAM_LOB); $stmt->bindValue(2, $user['username']); $stmt->execute(); echo "ok"; } else { echo "Invalid file size"; } } else { echo "File not specified"; } } else { echo "Auth problem"; }