Rumah >pembangunan bahagian belakang >tutorial php > PHP中数据库查询并展示
PHP中数据库查询并显示
$cur_roomID=$_GET['roomID'];<br /> $query="SELECT *FROM room WHERE roomID=".$cur_roomID."";<br /> $result=mysql_query($query);<br /> $row = mysql_fetch_row($result);<br /> $cur_roomtype = $row['roomtype'];<br /> $cur_roomsize = $row['roomsize'];