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...
Validation for the file format is done.Code:<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>
PHP Code:if ($_FILES['banner']['type'] != "image/gif" || $_FILES['banner']['type'] != "image/jpeg")
{
$javascript = 'alert(\'Please upload image file with gif or jpeg format
only!\');';
}



Reply With Quote

Bookmarks