Ramesh,
> I want to us date variable in for loop Condition. in PHP
This is a PostgreSQL list. We cannot help you with PHP.
If you want help with PHP, see the PHP website and their mailing lists:
http://www.php.net/
--
-Josh Berkus
Aglio Database Solutions
San Francisco