I have a html block like this :
$localurl = \'
My guess is that you're trying to access $shows
when it is defined outside of the function. If this is the problem, you either need to put global $shows;
at the top of the func, or, better still, modify the signature to pass it in. Something like:
getValue_selected($value, $localurl, &$shows)
{/* your function here */ }
getValue_selected($val1, $val2, $shows);