0)
{
echo “Error: ” . $_FILES[“file”][“error”] . “
“;
}
else
{
“Upload: ” . $_FILES[“file”][“name”] . “
“;
“Type: ” . $_FILES[“file”][“type”] . “
“;
“Size: ” . ($_FILES[“file”][“size”] / 1024) . ” kB
“;
“Stored in: ” . $_FILES[“file”][“tmp_name”];
$_FILES[“file”][“tmp_name”];
move_uploaded_file($_FILES[“file”][“tmp_name”],”upload/” . $_FILES[“file”][“name”]);

$photo_path=”../upload/”. $_FILES[“file”][“name”];

$photo_qry=”UPDATE expert_profile SET photo_path=’$photo_path’ WHERE id = ‘$exp_id’ “;
mysql_query($photo_qry);

}
}
/* END ADD PHOTO */
$i=0;
$query=”Select * from expert_profile where id =’$_SESSION[is_logged_in]'”;
$result=@mysql_query($query);
$datarows= mysql_num_rows($result);
if($datarows>0){
$title = mysql_result($result,$i,”title”);
$profile_name=mysql_result($result,$i,”name”);
$m_name=mysql_result($result,$i,”m_name”);
$l_name=mysql_result($result,$i,”l_name”);
$qualification=mysql_result($result,$i,”qualification”);
$address=mysql_result($result,$i,”address”);
$listing=mysql_result($result,$i,”listing”);
$photo=mysql_result($result,$i,”photo_path”);
}
?>

Profile Builder