Try this... I can't see anything wrong with yours, but i've just tidied it up a little... make sure you've got the ?> at the end...
dom
π
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY BGCOLOR="#FFFFFF" link=black vlink=blue>
<?php
$connect=mysql_connect("localhost","root","");
mysql_select_db=("teldevel",$connect);
$query="select emp_name,dept,position,sex,hobby,birth_year,birth_month,birth_day,birth_chk from employee order by emp_name asc";
$result=mysql_query($query,$connect);
$total=mysql_num_rows($result);
$totalid=$total;
?>
</BODY>