View Single Post
Old 01-24-2007, 12:50 AM  
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
Quote:
Originally Posted by mkx View Post
Payment date should *contain* "Jan" since this is how it is entered "04:55:21 Jan 19, 2007 PST"
Assuming you've got your db connection established..

Quote:
Originally Posted by calmlikeabomb
$Total= mysql_result(mysql_query("SELECT SUM(total_income) AS Total FROM `db` WHERE payment_date LIKE '%Jan%'"),0);

print $Total;
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote