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.
Any help appreciated and thanks in advance
You must be registered for see images 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>
Any help appreciated and thanks in advance