18.04.2013, 21:59
PHP код:
<?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 ..
?>