Weird stuff
- From: bill <nobody@xxxxxxxxxxx>
- Date: Wed, 14 Jul 2010 07:21:13 -0400
Ok, I admit I have only a couple of years of PHP programming experience and can use all the help I can get.
the echo on line 178 does not output a value for the compare.
the echo on line 183 produces only a blank line.
here is the script fragment (sorry for the unintended line breaks - line numbers are at the beginning of each line)
177: echo __LINE__.":".($runningBalance[0]==$beginning[0]) . "-<br />";
178: echo __LINE__.":" .($runningBalance[1]==$beginning[1]) . "-<br />";
179: echo __LINE__ . " rB[1] = $runningBalance[1]<br />";
180: echo __LINE__ . " b[1] = $beginning[1]<br />";
181: if ($runningBalance[1]==$beginning[1])
182: echo __LINE__ . " 1: EQUAL<br /";
183: else echo __LINE__ . " 1: UNEQUAL<br />";
184: if ($runningBalance[0]==$beginning[0])
185: echo"audit.php:". __LINE__ . " 0: EQUAL<br /";
186: else echo "audit.php:". __LINE__ . " 0: UNEQUAL<br />";
187: if ($runningBalance[1]==$beginning[1])
188: echo __LINE__ . " 1: EQUAL<br /";
189: else echo __LINE__ . " 1: UNEQUAL<br />";
190: echo __LINE__ . " end<br />
the full output is:
177:1-
178:-
179 rB[1] = 32.38
180 b[1] = 32.38
183 1: UNEQUAL
audit.php:185 0: EQUAL
190 end
I can see no reason why:
a) the compare on line 178 outputs nothing
a) the compare is unequal on line 187
b) there is only a blank line output on line 189
bill
.
- Follow-Ups:
- Re: Weird stuff
- From: bill
- Re: Weird stuff
- From: Denis McMahon
- Re: Weird stuff
- From: Captain Paralytic
- Re: Weird stuff
- From: Jerry Stuckle
- Re: Weird stuff
- Prev by Date: Re: sql does INSERT into query browser but gets a php error
- Next by Date: Urgent Requirement for PHP MYSQL Developers
- Previous by thread: sql does INSERT into query browser but gets a php error
- Next by thread: Re: Weird stuff
- Index(es):
Relevant Pages
|