Re: Question about passing date in sql...
| From: | Payne | Date: | Thu, 02 Aug 2007 08:04:16 +0000 |
| Subject: | Re: Question about passing date in sql... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260045@lists.php.net to get a copy of this message | ||
Stut wrote:
Michael Preslar wrote:Thanks.PHP also supports the that. However, I think the OP's problem is that it's inside other quotes and is therefore not being executed. But, as someone else pointed out, you should be using the PHP date function to get the date from within PHP. -Stut Not perl, bash! Well, what I was trying to do was covert my bash script to php, my sql statement makes the call to date so that it puts today date, that all it doing. I will look around and see if I can do that with php.I know it has to do with date='Are you trying to use perl's back tic operator in php here?date +%Y%m%d', because if I remove it works.