Re: New problem - HELP! [SOLVED]

From: Date: Thu, 13 Nov 2003 23:42:48 +0000
Subject: Re: New problem - HELP! [SOLVED]
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-169609@lists.php.net to get a copy of this message
Jake -- ..and then Jake McHenry said... % % > -----Original Message----- % > From: Jake McHenry [mailto:linux@nittanytravel.com] .. % > > -----Original Message----- % > > From: David T-G [mailto:davidtg-php@justpickone.org] .. % > > ...and then Jake McHenry said... .. % > > % % > > % Basically, some lines have 2, some only have the first, % > > only the % second will ever be empty. % > > % > > Question: is it empty or is it actually undefined? .. % > % > You asked is it empty or actually undefined...? I showed you % > the csv file, and the output of print_r... You tell me.. I % > don't know.. Lol *grin* OK; fair enough. I *thought* that it was defined but wasn't sure. % > .. % % I got it... It wasn't being showed, but $value[1] only contained the % newline \n character if there wasn't anything to fill it from the csv % file. Aha! % % I changed my if condition to if ($value[1] == "\n") and it then went % inside the condition. You might prefer to trim() your input and go back to "" instead. HTH & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#169609) next »