Recent Topics

1 Dec 29, 2005 19:22    

I've the following if statement:


  <?php if( $disp != 'single') {
	if ( $blog != 10 OR $blog != 17 OR $blog != 18) echo  "To print follow this Link..";
} ?>

It does not evalute the first condition.

Can any please tell why?

Thanks to all and :lol: New Year...

2 Dec 29, 2005 19:27

I think you want it this way:

<?php if( $disp != 'single') {
    if (!( $blog == 10 OR $blog == 17 OR $blog == 18)) echo  "To print follow this Link..";
} ?> 

Just reread your post. You're having a problem with the first condition? Try putting in echo $disp; to make sure you're getting that variable correctly.

3 Dec 30, 2005 04:40

Thanks personman,

Your way works just the way I wanted.

Aprreciate vey much your help. :lol:


Form is loading...