Jump to content
MakeWebGames

Recommended Posts

Posted

I just took a look at the [mccode] Crime Count : A very simple mod that allows you to view your crimes succeeded, Crimes Failed & Total Crimes.

I tried adding another one too my view user that shows users what current job i am on and also the rank name. Now i have added this too my view user

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

But this only shows the job ID, How would i be able to change this too the actual name of the job ?

Posted

$Job = mysql_fetch_array(mysql_query("SELECT `jNAME` FROM `jobs` WHERE (`jID` = ".$ir['job'].")"));

echo 'Current job : '.$Job['jName'].'';

That should do it

Or there should be a LEFT JOIN query at the top, include jNAME in it and then echo out '.$r['jNAME'].' or something similar to what you have done

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...