2013/2/25 22:35
preachur
Just can't stay away
Posts: 525
Since: 2006/2/4 4
$query_Recordset1 = "SELECT custom AS muser_id, option_selection1 as showname, DATE_FORMAT(payment_date, '%b %e') AS date, CONCAT('".$curr_sign."',SUM(mc_gross)) AS amt FROM ".$xoopsDB->prefix("donations_transactions")." WHERE (payment_date >= DATE_FORMAT(NOW(),'%Y-%m-".$swingd."')) GROUP BY txn_id ORDER BY payment_date DESC"; }else{ $query_Recordset1 = "SELECT custom AS muser_id, option_selection1 as showname, DATE_FORMAT(payment_date, '%b-%e') AS date, CONCAT('".$curr_sign."',SUM(mc_gross)) AS amt FROM ".$xoopsDB->prefix("donations_transactions")." WHERE (payment_date < DATE_FORMAT(NOW(), '%Y-%m-".$swingd."')) AND payment_date > DATE_FORMAT(SUBDATE(NOW(),INTERVAL ".$swingd." DAY), '%Y-%m-".$swingd."') GROUP BY txn_id ORDER BY payment_date DESC"; } $Recordset1 = $xoopsDB->query($query_Recordset1); $totalRows_Recordset1 = $xoopsDB->getRowsNum($Recordset1); $ROWS_DONATORS = ""; // Fill out the donators table tag while ($row_Recordset1 = $xoopsDB->fetchArray($Recordset1)) { if ( $row_Recordset1['amt'] > $curr_sign.'0' ) { $ROWS_DONATORS .= ""; $ROWS_DONATORS .= " "; $muser_id = $row_Recordset1['muser_id']; if ( strcmp($row_Recordset1['showname'],"Yes") == 0 && ($userfoin = mgetusrinfo($muser_id))) { $ROWS_DONATORS .= "getVar('uid')."'>".xdshorten($userfoin->getVar('uname'))."n"; Login Username Password Remember me Reset Search Advanced Search Recent Posts XOOPS needs help with Core translations 4/28 5:20 Mamba XOOPS 2.5.12 Beta-7 available for Testing 4/28 4:20 Mamba XOOPS 2.7 roadmap in 4 phases 4/25 0:57 alain01 Access Control; Opening your XOOPS Site to all networks apart from Internet (Networking Plug-n-Play) 4/22 11:08 wishcraft Two news on Richard Griffith and Nicolas Andricq 4/10 23:01 alain01 Re: Today is a great day 4/10 0:05 black_beard Re: Today is a great day 4/9 20:47 Mamba Today is a great day 4/9 12:44 Cesagonchu Re: XOOPS 2.7.0 Development Started 4/4 8:53 Mamba Re: XOOPS 2.5.12 Beta-6 available for Testing 4/4 0:28 Mamba Who's Online 202 user(s) are online (163 user(s) are browsing Support Forums) Members: 0 Guests: 202 more... Donat-O-Meter Stats Goal: AU$15.00 Due Date: May 31 Gross Amount: AU$0.00 Net Balance: AU$0.00 Left to go: AU$15.00 Latest GitHub Commits {{ record.sha.slice(0, 7) }} - {{ record.commit.message | truncate }} {{ record.commit.author.name }} {{ record.commit.author.date | formatDate }}
Advanced Search
202 user(s) are online (163 user(s) are browsing Support Forums)
Members: 0
Guests: 202