hi i can easily upload image in php as follows code
@$file_path = "admin/alumni_image/";
@$file_name= basename($_FILES['photo']['name']);
@$file_path = $file_path . basename( $_FILES['photo']['name']);
if(move_uploaded_file(@$_FILES['photo']['tmp_name'], $file_path))
{
$response1=array();
$query = "update alumni set photo = '".$file_name."' where alumni_id = '".$data['alumni_id']."'";
$query_run= mysql_query($query);
echo mysql_error();
}
but now i facing problem when doing same when i got image as base64.
@that this code seems to love so much?