please tell me the error..it says parse error

Code:
<?php

include('connection.php');
include('security.php');


$name=$_POST['name'];

if($name=="")
{

echo"<script type='text/javascript'>alert('Name or Category Cannot be NULL')</script>";

header('location:admin_insert_category_html.php');

}



else{
$n=mysql_query("insert into category(name) values('$name')");

$c=mysql_affected_rows($connect);

if($c>0)
{
echo "<script type='text/javascript'>".$t=."alert('Done')</script>";
if($t)
{
header('location:adminhome.php?act=1');
}
}
else{
echo"<h3>Error Occured!</h3>";
}
}

?>
Thankyou