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: 388953" data-attributes="member: 1958"><p>I'm currently trying to get the script created below to show information from 2 tables, users and users_settings and so far its not displaying either. I know for a fact this script created works when you are just calling for one table in the database just not sure how to join both tables in one query if that makes sense.</p><p></p><p> [Spoiler] <?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>To call it <?php echo $row['respects_received']; ?>[/spoiler]</p></blockquote><p></p>
[QUOTE="Kristopher, post: 388953, member: 1958"] I'm currently trying to get the script created below to show information from 2 tables, users and users_settings and so far its not displaying either. I know for a fact this script created works when you are just calling for one table in the database just not sure how to join both tables in one query if that makes sense. [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)){ ?> To call it <?php echo $row['respects_received']; ?>[/spoiler] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
RevCMS PHP Displaying Error
Top