devil_vin
10-27-2007, 08:51 AM
Hey,guys! I have a form to upload image into database,which had a BLOB type column called banner to store the image.How can I specific it in INSERT statement?Thanks...
<form name="addMovie" method="post" action="<? echo htmlentities($HTTP_SERVER_VARS['PHP_SELF']); ?>"
enctype="multipart/form-data">
<input type="file" name="banner" value="banner">
</form>
Validation for the file format is done.
if ($_FILES['banner']['type'] != "image/gif" || $_FILES['banner']['type'] != "image/jpeg")
{
$javascript = 'alert(\'Please upload image file with gif or jpeg format
only!\');';
}
<form name="addMovie" method="post" action="<? echo htmlentities($HTTP_SERVER_VARS['PHP_SELF']); ?>"
enctype="multipart/form-data">
<input type="file" name="banner" value="banner">
</form>
Validation for the file format is done.
if ($_FILES['banner']['type'] != "image/gif" || $_FILES['banner']['type'] != "image/jpeg")
{
$javascript = 'alert(\'Please upload image file with gif or jpeg format
only!\');';
}