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
How to pull info from database (help Please)
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="Ben144" data-source="post: 467795" data-attributes="member: 73963"><p>Hey i am recreating the jobs page on the FluxRP CMS and am trying to pull the relevant data from the rp_jobs table, but i am having no luck as when i want to display the owners name, then i put owner_id, but it only displays the owners id and not their full username. The same goes for the avatar it isn't pulling the owner's avatar look ect.</p><p></p><p>[ATTACH=full]12061[/ATTACH]</p><p></p><p>[CODE]<div class="corporation-index-grid"></p><p> <div class="corp"></p><p> <div class="content-box"></p><p> <?php</p><p> $badgepath = "{url}/fluxweb/corps/";</p><p> </p><p> $q = mysql_query("SELECT * FROM rp_jobs WHERE type = 'skilled' AND hidden = 0 ");</p><p> while($row = mysql_fetch_assoc($q))</p><p> {</p><p> </p><p> echo "<div class='title'>" . $row['name'] . " <span class='title-small float-right'><small>20 employees</small></span></div></p><p> <div class='box-content d-flex justify-content-center align-items-center p-0'></p><p> <div class='' style='margin-left: -15px;'></p><p> <div class='manager-wrapper'></p><p> <img src='https://www.habbo.nl/habbo-imaging/avatarimage?figure=".$owner['look']."&amp;direction=2&amp;gesture=sml&amp;size=l'></p><p> </div></p><p> </div></p><p> <div class='mr-auto'>Managed by <strong>".$owner['username']."</strong></div></p><p> <div class='pr-3'></p><p> <img class='corporation-badge' src='" . $badgepath . $row['badge'] . ".gif'></p><p> </div></p><p> <div class='pr-3 d-flex'></p><p> <div class='mr-1'><a class='button blue pr-1' href=" . JobsView() . $row['id'] . "'>View <i class='far fa-arrow-alt-circle-right'></i></a></div></p><p> <div class='ml-1'> <a class='button discord' href=''><i class='fab fa-discord'></i></a></div></p><p> </div></p><p> </div>";</p><p> }</p><p> </p><p> </p><p> ?></p><p> </div></p><p> </div></p><p> </div></p><p> </div>[/CODE]</p><p></p><p>Any help appreciated and thanks in advance</p></blockquote><p></p>
[QUOTE="Ben144, post: 467795, member: 73963"] Hey i am recreating the jobs page on the FluxRP CMS and am trying to pull the relevant data from the rp_jobs table, but i am having no luck as when i want to display the owners name, then i put owner_id, but it only displays the owners id and not their full username. The same goes for the avatar it isn't pulling the owner's avatar look ect. [ATTACH type="full"]12061[/ATTACH] [CODE]<div class="corporation-index-grid"> <div class="corp"> <div class="content-box"> <?php $badgepath = "{url}/fluxweb/corps/"; $q = mysql_query("SELECT * FROM rp_jobs WHERE type = 'skilled' AND hidden = 0 "); while($row = mysql_fetch_assoc($q)) { echo "<div class='title'>" . $row['name'] . " <span class='title-small float-right'><small>20 employees</small></span></div> <div class='box-content d-flex justify-content-center align-items-center p-0'> <div class='' style='margin-left: -15px;'> <div class='manager-wrapper'> <img src='https://www.habbo.nl/habbo-imaging/avatarimage?figure=".$owner['look']."&direction=2&gesture=sml&size=l'> </div> </div> <div class='mr-auto'>Managed by <strong>".$owner['username']."</strong></div> <div class='pr-3'> <img class='corporation-badge' src='" . $badgepath . $row['badge'] . ".gif'> </div> <div class='pr-3 d-flex'> <div class='mr-1'><a class='button blue pr-1' href=" . JobsView() . $row['id'] . "'>View <i class='far fa-arrow-alt-circle-right'></i></a></div> <div class='ml-1'> <a class='button discord' href=''><i class='fab fa-discord'></i></a></div> </div> </div>"; } ?> </div> </div> </div> </div>[/CODE] Any help appreciated and thanks in advance [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
How to pull info from database (help Please)
Top