Jemz
xmas tings.
- Aug 6, 2013
- 166
- 17
Basically I'm trying to code a small script that posts the rooms the user logged in has made
for example if I was logged in it would post all the rooms I made, I was wondering how would I do this
Code so far:
for example if I was logged in it would post all the rooms I made, I was wondering how would I do this
Code so far:
PHP:
<?php
echo "Habbo rooms: <select name=\"cars\" style=\"color: #7d7d7d;padding: 5px;border-radius: 3px;background: #F1F1F1;border: 1px solid #CCC;border-bottom: 2px solid #CCC;width: 38%;margin-right: 26px;font-weight: bold;\">";
$result = mysql_query("SELECT caption FROM rooms WHERE owner = {username}");
while($row = mysql_fetch_array($result))
echo "<option value='{$row['caption']}'>{$row['caption']}</option>";
echo "</select>";
?>