Re: Re: newbie lost on data import... part 3

From: Date: Sun, 10 Aug 2003 05:25:03 +0000
Subject: Re: Re: newbie lost on data import... part 3
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-29785@lists.php.net to get a copy of this message
jsWalter wrote:
OK, now I am really sure it has to do with the vars I defined from my text file... Once I have the text file open, I'm looping through it... // pull RETURN off the end $trimmed = rtrim($lines[$x]); // Pull apart array element list($strDate,$strNum,$strName) = explode ("\t", $trimmed); // Make the Dte a mySQL Date Object $objDate = new Date($strDate); // Spit it out to double check what I've got echo '>' . $strDate . '< - >' . $strNum . '< - >' . $strName . '< <p />';
So does this echo display anything? What does the Date class do? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com

« previous php.db (#29785) next »