Hi
I'm trying to display data in a table list format but error message like this appear. What is wrong with the code?
"Parse error: syntax error, unexpected '<' in C:\htdocs\...\M B2movieinfo.php on line 27"
I'm trying to display data from table in databse in new window and there is a close window button to close the opened window.
TQ
[PHP]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Movie Information Details</title>
<link rel="stylesheet " href="moviebrow ser2.css" type="text/css" title="Default" media="screen"/>
<style type="text/css">
</style>
</head>
<?PHP
$dbHost = "localhost" ;
$dbUser = "*****";
$dbPass = "****";
$dbDatabase = "*****";
$db = mssql_connect(" $dbHost", "$dbUser", "$dbPass") or die ("Error connecting to /database.");
mssql_select_db ("$dbDatabas e", $db) or die ("Couldn't select the database.");
$query="select * from Movie where movieID = 1 ";
$qt=mssql_query ($query);
while($nt=mssql _fetch_array($q t)){
<span class="style2"> </span>
<table width="600" border="0" align="center">
<tr>
<td height="20" colspan="2" align="center" valign="middle" bgcolor="#53474 1"><span class="style3"> MOVIE OVERVIEW</span></td>
</tr>
<tr>
<td width="146" valign="top" >DIRECTOR</td>
<td width="444"><? echo "$nt[movieTitle]"?>;<br /></td>
</tr>
<tr>
<td width="146" valign="top" >WRITER</td>
<td width="444"><? echo "$nt[writer]"?>;<br /></td>
</tr>
<tr>
<td width="146" valign="top" >GENRE</td>
<td width="444"><? echo "$nt[genre1]" . "$nt[genre2]". "$nt[genre3]"."$nt[genre4]"."$nt[genre5]"?>;<br /></td>
</tr>
<tr>
<td> </td>
<td>
<form>
<align="right ">
<input name="button" type=button onclick="javasc ript:window.clo se();" value="Close Window" />
</form>
</td>
</tr>
</table>
}
?>
</body>
</html>
[/PHP]