Skip to content

Instantly share code, notes, and snippets.

@kevinwritescode
Created September 4, 2012 21:01
Show Gist options
  • Select an option

  • Save kevinwritescode/3626413 to your computer and use it in GitHub Desktop.

Select an option

Save kevinwritescode/3626413 to your computer and use it in GitHub Desktop.
if ($style == 'created') {
$sql .= " AND s.chg_tot < 10";
$sql .= " AND (s.chg_tot > 0 OR s.credit = 1 OR s.credit = 2)";
$sql .= " AND (s.last_date IS NULL OR s.last_date >= " . $db->quote($startDate) . ")";
$sql .= " AND s.cre_date BETWEEN " . $db->quote($startDate) . " AND " . $db->quote($endDate);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment