What is wrong in this code ??
<?
$link = mysql_connect("localhost", "root","datatec1");
mysql_select_db('intranet',$link);
//$sql="select insti from incident";
$result=mysql_query("SELECT insti from incident");
//echo "<select name=\"myselect\"><option value=\"\"></option>";
while ($rows=mysql_fetch_array($result)){
$option=$rows['insti'];
//can also get ID or other value here too
// print "<tr align=center>\n";
echo "<option value=\"$option\">$option</option>";
}
?>
When i open this page show me this error:
"; while ($rows=mysql_fetch_array($result)){ $option=$rows['insti']; //can also get ID or other value here too // print "\n"; echo "$option"; } ?>
Thx for help
Ana Elisa Martinez