it did not work
look forget it was wordpress
<?php echo "get_post_meta($post->ID, 'sub', true);" ?> == return string value i stored in shreef
i want to color this string value
so i used if
if string value was subbed print green "subbed " from the answer of if
and have two other answer so i used two other else
but it did not complete first start <?php
did not read final
?>
and so i needed to know if there are some special character i had to escape and how
<?php
$Shreef = <?php echo "get_post_meta($post->ID, 'sub', true);" ?>
if ($Shreef=="Subbed"){
<font color="green">
<?php echo "get_post_meta($post->ID, 'sub', true);" ?>
</font>
}
else {
if ($Shreef=="Raw")
<font color="red">
<?php echo "get_post_meta($post->ID, 'sub', true);" ?>
</font>
else { <?php echo "get_post_meta($post->ID, 'sub', true);" ?>}
}
?>