I have to develop a code which meet certain logic
Here
count( $replies ) - calculate total replies on page
$replynumber - is what every reply which is 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 etc based on total number of replies done by users in the post
I am trying to dispaly custom advertising script based on adsense and other ad script depending on replies
<?php
if( count( $replies ) <= 3 )
{
<script>
Script 1 to display
</script>
}
else if(((count( $replies ) > 3) and (count( $replies ) <= 6)) and ($replynumber == '1','3','5'))
{
<script>
Script 2 to display
</script>
}
else if(((count( $replies ) > 6) and (count( $replies ) <= 12)) and ($replynumber == '1','4','7','10'))
{
<script>
Script 3 to display
</script> }
}
else if( count( $replies ) > 12 )
{
<script>
Script 4 to display
</script>
}
?>
But this is leading to parse error Can any one help on it please
Aucun commentaire:
Enregistrer un commentaire