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
Staff Page Problem
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="JayC" data-source="post: 330437" data-attributes="member: 36373"><p>$getMembers=mysql_query("SELECT id,age,country,username,motto,look,position,online,age,country,last_online,owner_bio FROM users WHERE rank = '".$Ranks['id']."'"); </p><p>Do not fucking code like this. What are we, 2?</p><p></p><p>$getMembers=mysql_query("SELECT <strong>* </strong>FROM users WHERE rank = '".$Ranks['id']."'");</p><p>the star grabs every column value then just say</p><p>$getMembers['column'];</p><p>[DOUBLEPOST=1427727361,1427726974][/DOUBLEPOST] <ol> <li data-xf-list-type="ol"><ol> <li data-xf-list-type="ol">$getRanks = mysql_query("SELECT * FROM ranks WHERE id = 7 ORDER BY id DESC");</li> <li data-xf-list-type="ol"><br /> </li> <li data-xf-list-type="ol">while ($Ranks = mysql_fetch_assoc($getRanks))</li> <li data-xf-list-type="ol">{ </li> <li data-xf-list-type="ol"> echo ' <div class="habblet-container "> </li> <li data-xf-list-type="ol"><div class="cbb clearfix blue "></li> <li data-xf-list-type="ol"><h2 class="title"><span style="float: left;">' . $Ranks['name'] . </li> </ol></li> </ol><p>Line 1) Put * instead of id,name</p><p></p><p>that might fix it. The reason is because the query already contains id,name and when you call to getRanks with the While loop it fucks up.</p></blockquote><p></p>
[QUOTE="JayC, post: 330437, member: 36373"] $getMembers=mysql_query("SELECT id,age,country,username,motto,look,position,online,age,country,last_online,owner_bio FROM users WHERE rank = '".$Ranks['id']."'"); Do not fucking code like this. What are we, 2? $getMembers=mysql_query("SELECT [B]* [/B]FROM users WHERE rank = '".$Ranks['id']."'"); the star grabs every column value then just say $getMembers['column']; [DOUBLEPOST=1427727361,1427726974][/DOUBLEPOST][LIST=1] [LIST=1] [*]$getRanks = mysql_query("SELECT * FROM ranks WHERE id = 7 ORDER BY id DESC"); [*] [*]while ($Ranks = mysql_fetch_assoc($getRanks)) [*]{ [*] echo ' <div class="habblet-container "> [*]<div class="cbb clearfix blue "> [*]<h2 class="title"><span style="float: left;">' . $Ranks['name'] . [/LIST] [/LIST] Line 1) Put * instead of id,name that might fix it. The reason is because the query already contains id,name and when you call to getRanks with the While loop it fucks up. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Staff Page Problem
Top