PHP Question
#3

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 ..
    
?>
Reply


Messages In This Thread
PHP Question - by undeR. - 18.04.2013, 21:16
Re: PHP Question - by Luis- - 18.04.2013, 21:48
Re : PHP Question - by Lenshy - 18.04.2013, 21:59
Re: PHP Question - by Luis- - 18.04.2013, 22:05
Re: PHP Question - by undeR. - 19.04.2013, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)