PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > IF command
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
IF command

Réponse
 
LinkBack Outils de la discussion
Vieux 19/10/2007, 01h49   #1
ron.php
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut IF command

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>";
}
  Réponse avec citation
Vieux 19/10/2007, 02h00   #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
Vieux 19/10/2007, 02h50   #3
Bastien Koert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] IF command


Are you sure that the value is a string? If its numeric, then try the checkwithout the quotes around the value


bastien> From: ron.php@actsministries.org> To: php-general@lists.php.net> Date: Thu, 18 Oct 2007 19:49:55 -0500> Subject: [php] IF command> > When $component_reference is 5 or 19 I don't want the echo statement to > output tothe 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>
__________________________________________________ _______________
Send a smile, make someone laugh, have some fun! Start now!
http://www.freemessengeremoticons.ca/?icid=EMENCA122
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 15h55.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09042 seconds with 11 queries