Hi,I am programmer of php/mysql and i have problem about extract the different

Muhammad

New member
between tow dates? Hi,I am programmer of php/mysql and i have problem about extract the different between tow dates and I used this code to get different $dat=mysql_query(" select datediff("2009-05-01'),('2008-05-02') as datediff ");
$fetch_diff=mysql_fetch_array($dat);
echo $fetch_diff[0];
But there is error show to me , why?
 
Back
Top