<html>
<head>
<title>
Edit Room Rate
</title>
</head>
<body style="background-color: #ffffff;background-image:url(rail.jpg);background-repeat: repeat-y">
<center>
<?php include('link.php');?><h2>Adjust Room Rate</h2>
<h3><a href='http://www.wauhaha.com/karaoke/roomtype.php' title=Back><img src=back.jpg width=40 height=40></a></h3>
</center>
<?php
$login=mysql_connect('localhost', 'wauhaha_karaoke', 'cross123','wauhaha_karaoke');
	
	mysql_selectDB("wauhaha_karaoke",$login);
$RID = $_GET['RID'];
$re = mysql_query("select * from roomtype where RID='$RID'");
$row = mysql_fetch_array($re);
echo "
<form method=post action='http://www.wauhaha.com/karaoke/addrateaction.php?RID=$RID '>
<table align=center>
	<tr>
		<td>Room Type:</td>
		<td><input type=text name=name value=".$row['roomtype']."></td>
	</tr>
	
	<tr>
		<td>Normal Price:</td>
		<td><input type=text name=p1 value=".$row['price1']." size=5></td>
	</tr>
		<tr>
		<td>Student Price:</td>
		<td><input type=text name=p2 value=".$row['price2']." size=5></td>
	</tr>
	<tr>
		<td colspan=2 align=center><input type=submit Value=Adjust><input type=reset value=Reset></td>
	</tr>
</table>";

?>