UPDATE: in the client function code i just put
fruits instead of
fruit.
Now It works.
Question:
I need to get the data from my DB. We assume i got all the rows and put inside
rows[].
Now how can i replace with:
PHP Code:
##function that will do the job
function BigData($count,$type){
switch($type){
case 'red':
return $count." Apple";
break;
case 'yellow':
return $count." banana";
break;
}
}