Re: Re: Formating datevariables...

From: Date: Wed, 24 Jul 2002 02:42:00 +0000
Subject: Re: Re: Formating datevariables...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109195@lists.php.net to get a copy of this message
Sure using MySQL specific calls is faster but makes you more dependant on MySQL and thus makes your application less portable to other databases. Cameron John Holmes wrote:
Did you even read the replies? Why are you going to do a bunch of string manipulation, mktime, and date calls in PHP when you can just use DATE_FORMAT() in your query and get exactly what you want without any additional work by PHP? Take a little time and Read Chapter 6 of the MySQL manual. It will save you a ton of work later on... ---John Holmes...


« previous php.general (#109195) next »