use LOCAL variable in PHPscript

how can i replace red text in the code with the $test into phpscript in order to let it work?

$test='Ziekte';

?>
<script>
    
    $(document).ready(function() {

    $( "tr .scGridFieldOdd:contains('?'):contains('Ziekte')" ).css("background", "#FFFF00 " );
    $( "tr .scGridFieldEven:contains('?'):contains('Ziekte')" ).css("background", "#FFFF00 " );

    });

</script>
<?php

With the scriptcase macro:

sc_field_color(“Field”, “Color”)

Example:
if ({value_order} > 1000)
{
sc_field_color (“value_order”, “#33FF66”);
}
else
{
sc_field_color (“value_order”, “”);
}

Groet, Bert Steinebach

Bert, I want to color the whole row in one time.

I think I have to use this code but there’s something wrong with the ’ and/or "

    $( "tr .scGridFieldOdd:contains('?'):contains('&lt;php echo $test ?&gt;')" ).css("background", "#FFFF00 " ); // volledige rij GEEL
  $( "tr .scGridFieldEven:contains('?'):contains('Ziekte'                    )" ).css("background", "#FFFF00 " );

For future use:
this code works after declaring a global variable, a variable and a color variable.

    $( "tr .scGridFieldEven:contains('&lt;?php echo [unchecked] ?&gt;'):contains('&lt;?php echo $ziekte ?&gt;')" ).css("background", "&lt;?php echo [nieuw_color] ?&gt;" );

Nice…I could use it in the future
Regards, Bert Steinebach, Zwolle NL

Easy to use and an nice layout!