Discussion: IF command
Afficher un message
Vieux 19/10/2007, 03h00   #2
Carlos Martínez González
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] IF command

Hi, here is the code:

if ( ($component_reference != "5") AND ($component_reference != "19") ) {
echo "<li><a href=\"index.php?request=" . $request . "\">" .
$component_name . "</a>";
}


2007/10/19, ron.php <ron.php@actsministries.org>:
> When $component_reference is 5 or 19 I don't want the echo statement to
> output to the screen. What is the correct syntax? What I have below isn't
> working. Thanks for your . Ron
>
> if ( ($component_reference != "5") OR ($component_reference != "19") ) {
> echo "<li><a href=\"index.php?request=" . $request . "\">" .
> $component_name . "</a>";
> }
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

  Réponse avec citation
 
Page generated in 0,08015 seconds with 9 queries