upload image to blob field - How to
<p>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:</p>

<pre><code>&lt;form id="form" method="post" enctype="multipart/form-data"&gt;
&lt;input type="file" name="thumbnail" /&gt;

...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')";
</code></pre>

<p>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?</p>
