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
rp_jobs id not working (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: 467912" data-attributes="member: 73963"><p>Hey,</p><p></p><p>I am creating a custom CMS and i have stubbled onto a problem after changing the query (Shown in the code below). The query was needed to work the rest of the code, but when the user clicks on the "View" button then the user always gets directed to corporation with the id 1.</p><p></p><p>[CODE]<div class="content"></p><p></p><p> <div class="container"></p><p> </p><p> <div class="corporation-index-grid"></p><p> <?php</p><p> $badgepath = "{url}/fluxweb/corps/";</p><p> </p><p> </p><p> $q = mysql_query("SELECT * FROM rp_jobs AS rp LEFT JOIN users AS u ON rp.owner_id = u.id WHERE rp.type = 'Skilled' and rp.hidden = 0");</p><p> while($row = mysql_fetch_assoc($q))</p><p> {</p><p> </p><p> echo "<div class='corp'></p><p> <div class='content-box'></p><p> <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=".$row['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>" . $row['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> </div></p><p> </div></p><p> ";</p><p> }</p><p> ?>[/CODE]</p><p></p><p>Any help appreciated and thanks in advance.</p><p>[automerge]1614431001[/automerge]</p><p></p><p>Bump I still need help with this</p></blockquote><p></p>
[QUOTE="Ben144, post: 467912, member: 73963"] Hey, I am creating a custom CMS and i have stubbled onto a problem after changing the query (Shown in the code below). The query was needed to work the rest of the code, but when the user clicks on the "View" button then the user always gets directed to corporation with the id 1. [CODE]<div class="content"> <div class="container"> <div class="corporation-index-grid"> <?php $badgepath = "{url}/fluxweb/corps/"; $q = mysql_query("SELECT * FROM rp_jobs AS rp LEFT JOIN users AS u ON rp.owner_id = u.id WHERE rp.type = 'Skilled' and rp.hidden = 0"); while($row = mysql_fetch_assoc($q)) { echo "<div class='corp'> <div class='content-box'> <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=".$row['look']."&direction=2&gesture=sml&size=l'> </div> </div> <div class='mr-auto'>Managed by <strong>" . $row['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> "; } ?>[/CODE] Any help appreciated and thanks in advance. [automerge]1614431001[/automerge] Bump I still need help with this [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
rp_jobs id not working (help please)
Top