Re: Question about passing date in sql...

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

 



Payne wrote:
Stut wrote:
Michael Preslar wrote:
I know it has to do with date='`date +%Y%m%d`', because if I remove it
works.

Are you trying to use perl's back tic operator in php here?

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.

Thanks.

Guys, thanks for the help got it, if I switch to current_date with is build into mysql that does what I was doing anyway.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux