parse error, unexpected T_IF
giving error
on line if(isset($result))
parse error, unexpected T_IF
can anybody help please
$link = mysql_pconnect("..", "", "")
or die ("Could not connect to MySQL");
mysql_select_db ("..") or
#FF0000or die ("Could not select database");
if(isset($_GET['id']))
{
$id=$_GET['id'];
$query="SELECT * FROM personInfo where indexno='$id';";
//$res_array= to_array($query)
$result=mysql_query($query) or die ("query faild");
if(isset($result))
{echo" working";}
//if(mysql_num_rows($result)===1)
// {
//$row=resourse_to_array($query);
//$res_array=result_to_array($result);
$messege="hi";
updateData($result,$messege);
|