$con = mysql_connect("localhost","root","")or die (mysql_error());
mysql_select_db("registration", $con);
function protect($value){
if(isset($_POST) && $_FILES >0)
$fileName = $_FILES;
$tmpName = $_FILES;
$fileSize = $_FILES;
$fileType = $_FILES;
$fp = fopen($tmpName, 'r');
$content = fread($fp, filesize($tmpName));
$content = addslashes($content);
$sql = "INSERT INTO signup_image (name, size, type, content ) VALUES ('$fileName', '$fileSize', '$fileType', '$content')";
$result = mysql_query($sql,$con);//PROBLEM HERE(LINE 121)
echo"<p>file $fileName uploaded</p>";
when i try to send file i got message MySQL server has gone away on line 121
so please help me!

just notify which is line 121 ....i can only see few lines...
and by the way use CODE tag to write code....