hm... I gues you are very new to PHP? :-)
all PHP block must be enclosed by <? and ?>. Allways. Even if it's an includefile read by another PHP script. PHP code is only ever executed if it's between <? and ?> tags.
<?
echo "this is PHP";
?>
<h2>And this is plain HTML</h2>
<SELECT NAME="room_type">
<? // start of PHP
echo "And this is PHP again";
mysql_select_db("dbname");
$sql="SELECT option_value, option_description FROM table2, hotels WHERE user_id = user_id";
{
while ($row=mysql_fetch_array($result,MYSQL_ASSOC))
{
echo "<OPTION VALUE=".$row['code_id'].">".$row['room_type']."</option>";
};
}
else
{
echo mysql_error();
};
// End of PHP
?>
</select>