php - How to upload images as base64 to database
one text
I'm trying to allow my user to upload an image using input type=file as base64 to phpmyadmin. This is what I understand so far.
$logosixty = new Imagick ('x');
$data = $image->getImageBlob();
$data = $mysqli->real_escape_string($data);
<form method="post">
<h1>Register</h1>
<div>
<label for="clublogo">Club Logo:</label>
<input type="file" id="img" name="img" accept="image/*">
</div>
</form>
I'm trying what to find to put as x.
Source