I am tring to upload an image to a blob field and just created a field on type blob, thinking that was it...but I get all types of different things over the net..so now I have this:
<form id="form" method="post" enctype="multipart/form-data">
<input type="file" name="thumbnail" />
...then to save:
$thumbnail = $_REQUEST['thumbnail'];
//Not sure about this:
$fileName = $_FILES['thumbnail']['name'];
$tmpName = $_FILES['thumbnail']['tmp_name'];
$fileSize = $_FILES['thumbnail']['size'];
$fileType = $_FILES['thumbnail']['type'];
and finally:
$sql = "insert into users(firstname,lastname,phone,email,thumbnail) values('$firstname','$lastname','$phone','$email','$thumbnail')";
I'm I on the right track? Do I need to create fields for: name, tmp_name,size and type or just keep the 1 field I have ... The Blob field?