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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux