OR or || argument problems
- From: "woody" <woody8624@xxxxxxxxx>
- Date: 30 Jan 2006 08:11:45 -0800
this is prolly a simple syntax thing...
if ($foo != "1" || $foo != "2" || $foo != "3"){
$foo = "1";
}
^^does not work
below works... above should work. i shouldn't have to go to this
trouble.
if ($foo != "1"){
if ($foo != "2"){
if ($foo != "3"){
$foo = "1";
}
}
}
.
- Prev by Date: Re: want a back button to get to the last page...
- Next by Date: Re: Filter Data based on Username
- Previous by thread: An open source application for an advertising website
- Next by thread: Php maysql backup/dump
- Index(es):