s their an error in this code ?? !!
it display Image uploded successfully but it isn't !!!!!!!
if(isset($_POST['submit']))
{
$query="insert into POST
(Title,SubTitle,PostDetail,PDay,PMonth,PYear)
values('$_POST[_title]','$_POST[_subtitle]','$_POST[_detail]',".
date("d").",".date("m").",".date("y").")";
//echo $query;
mysql_query($query);
$msg="post added sucsessfully";
if($_FILES['_postimage']['tmp_name']!= "")
{
move_uploaded_file($_FILES['_postimage']['tmp_name']
,$_SERVER['DOCUMENT_ROOT'].'/Aseelblog/POST_imgs/a.jpg');
$msg.="</br>Image uploded successfully";
//DOCUMENT_ROOT=/var/www/example /////
}
else
{
$msg.="image File too large or no image file ";
}
What's the expected problem here ??????