Hello guys
The problem is that i want to upload images also in database to add and attach folder, this code is finally worked to add images in attach folder just not to add in database, please advise, thanks.
<?
$pImage = $_FILES['upload']['name'];
if(isset($pImage)){
//echo "File Name: ".$pImage;
//echo "<br>File Temp Name: ".$_FILES['upload']['tmp_name'];
//echo "<br>File Size: ".$_FILES['upload']['size'];
//echo "<br>File Type: ".$_FILES['upload']['type'];
if($_FILES['upload']['size']<(50*1024)){
if(isset($pImage)){
$path="Attach/";
$arrImg=explode('.',$_FILES['upload']['name']);
copy($_FILES['upload']['tmp_name'],$path.$pImage);
}
else{
echo "Image size exceeds 50 kb";
}
}
}
?>
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --