-----Original Message-----
From: Analysis & Solutions
Sent: Tuesday, July 16, 2002 4:40 PM
To: PHP List
Subject: Re: [PHP] Re: Editing files by line

On Tue, Jul 16, 2002 at 04:25:25PM -0400, Onaje Johnston wrote:
>>
>> if ($insert && $linenumber) {

>But, if $linenumber is 0, this process won't happen.  And, that was the
>complaint you mentioned up front.
>
>So, you should do an "isset($linenumber)" instead.

>--Dan

Thanks.

It works using "if ($insert && isset($linenumber)) {".

So because the value of linenumber is 0 on the first line, the if statement
was evaluating to false and therefore the update wouldn't occur, correct?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to