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
Server Development
Habbo Retros
Habbo Q&A
RevCMS PHP Displaying Error
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="Kristopher" data-source="post: 388955" data-attributes="member: 1958"><p>So if you check the code below in the spoiler</p><p></p><p>[spoiler]</p><p><?php </p><p> </p><p> </p><p> $query = "SELECT username, respects_received, look FROM users AND users_settings WHERE rank < 7 ORDER BY respects_received DESC LIMIT 10"; </p><p> $result = mysql_query($query);</p><p></p><p> while($row = mysql_fetch_array($result)){</p><p> </p><p> </p><p> ?></p><p> </p><p> </p><p> </p><p> <div class="toplist"></p><p></p><p> <img src="<a href="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php" target="_blank">http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php</a> echo $row['look']; ?>&size=m&direction=3&head_direction=3&gesture=sml"></p><p></p><p> <div class="toplist"></p><p> <h1><?php echo $row['username']; ?></h1></p><p> <p><?php echo $row['respects_received']; ?></p></p><p> </div></p><p>[/spoiler]</p><p></p><p>You see:</p><p>$query = "SELECT username, respects_received, look FROM users AND users_settings WHERE rank < 7 ORDER BY respects_received DESC LIMIT 10"; </p><p></p><p>I'm trying to get that to display </p><p> <h1><?php echo $row['username']; ?></h1></p><p> <p><?php echo $row['respects_received']; ?></p></p><p>Which shows the username, figure, then the other table which is called at "AND users_settings" for the respects.</p></blockquote><p></p>
[QUOTE="Kristopher, post: 388955, member: 1958"] So if you check the code below in the spoiler [spoiler] <?php $query = "SELECT username, respects_received, look FROM users AND users_settings WHERE rank < 7 ORDER BY respects_received DESC LIMIT 10"; $result = mysql_query($query); while($row = mysql_fetch_array($result)){ ?> <div class="toplist"> <img src="[URL]http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php[/URL] echo $row['look']; ?>&size=m&direction=3&head_direction=3&gesture=sml"> <div class="toplist"> <h1><?php echo $row['username']; ?></h1> <p><?php echo $row['respects_received']; ?></p> </div> [/spoiler] You see: $query = "SELECT username, respects_received, look FROM users AND users_settings WHERE rank < 7 ORDER BY respects_received DESC LIMIT 10"; I'm trying to get that to display <h1><?php echo $row['username']; ?></h1> <p><?php echo $row['respects_received']; ?></p> Which shows the username, figure, then the other table which is called at "AND users_settings" for the respects. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
RevCMS PHP Displaying Error
Top