Re: [PHP] Logic -- conditional statements

2002-06-04 Thread Analysis & Solutions
On Tue, Jun 04, 2002 at 04:40:26AM +0400, Ricardo Fitzgerald wrote: > > I'm trying to echo a neat table I've GOT to bust your chops. That table and your code are anything BUT neat. For neat, you need to put tags to close each cell. Also nest your code properly... if ($value2 ==0) {

RE: [PHP] Logic -- conditional statements

2002-06-04 Thread John Holmes
p; $valueChk <= 3) > > //for 3rd row > if($valueChk == 3) > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > t]On Behalf Of Naintara Jain > Sent: Tuesday, June 04, 2002 2:37 PM > To: Ricardo Fitzgerald; [EMAIL PROTECT

RE: [PHP] Logic -- conditional statements

2002-06-04 Thread Naintara Jain
The problem here is that you have defined three different variables $value1,$value2,$value3. Keep only one variable (say,$valueChk) that can take values 1,2 or 3. Then check for the condition. And there's another mistake in the script, you are checking ---if ($value2 ==0)--- twice, you probably m