18.04.2013, 21:16
In my column "Jobs" there is ID's but i want to change ID's to characters to show in signature. I mean, i am using Signature Player Stats.
<?php
function get_job_Name($id) {
switch($id) {
case '1': // Id of job
echo('Job Name of id 1');
break;
case '2': // Id of job
echo('Job Name of id 2');
break;
// ...
default:
echo('Unknow job name.');
break;
}
}
get_job_Name('1'); // For example i would show the name of job id 1 ..
?>
$Job=mysql_result($result,0,"job");
$text_job = "$Job";
if($Job == 1)
{
imagettftext($im, 8, 0, 274, 61, 0xFFFFFF, $font, 'Mechanic');
}