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 MyMenus 1.54.0 Beta 10 11/18 11:08 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/18 11:06 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/16 12:32 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 18:06 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 5:33 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 5:29 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 4:39 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 3:50 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 3:31 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 1:48 Mamba Who's Online 279 user(s) are online (167 user(s) are browsing Support Forums) Members: 0 Guests: 279 more... Donat-O-Meter Stats Goal: $100.00 Due Date: Nov 30 Gross Amount: $0.00 Net Balance: $0.00 Left to go: $100.00 Latest GitHub Commits {{ record.sha.slice(0, 7) }} - {{ record.commit.message | truncate }} {{ record.commit.author.name }} {{ record.commit.author.date | formatDate }}
Advanced Search
279 user(s) are online (167 user(s) are browsing Support Forums)
Members: 0
Guests: 279