Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Users rooms.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Jemz" data-source="post: 259560" data-attributes="member: 36280"><p>Basically I'm trying to code a small script that posts the rooms the user logged in has made</p><p>for example if I was logged in it would post all the rooms I made, I was wondering how would I do this</p><p></p><p>Code so far:</p><p>[PHP]</p><p><?php</p><p>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;\">";</p><p>$result = mysql_query("SELECT caption FROM rooms WHERE owner = {username}");</p><p>while($row = mysql_fetch_array($result))</p><p>echo "<option value='{$row['caption']}'>{$row['caption']}</option>";</p><p>echo "</select>";</p><p>?>[/PHP]</p></blockquote><p></p>
[QUOTE="Jemz, post: 259560, member: 36280"] 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: [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>"; ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Users rooms.
Top