i want to write a php variable inside a html option tag, but my code is not working.
<html>
<body>
<?php $host="localhost" ;
$mysql_db="db" ;
$mysql_u="root" ;
$mysql_p="" ;
mysql_connect( "$host", "$mysql_u", "$mysql_p");
mysql_select_db( "$mysql_db");
$sel="select * from site" ;
$val=mysql_query($sel);
while($row=m ysql_fetch_array($val, MYSQL_ASSOC))
{
$a=$row[ 'a'];
<option value="$a" name="a">$a</option>
} ?>
</body>
</html>
i saved this file in .html extn is it right?