Anonymous
public php v1 · immutablewhile ($row = mysql_fetch_assoc($query)) { $pieces = explode("|", $row['User4']); $thedate = trim(date("D m/d/y", strtotime($row['ArrestDate']))); $totalcodes = count($pieces)-1; $i = 1; while ($i <= $totalcodes) { $vals2[$thedate]++; if (($i == "1") && ($pieces[$i] == $crimegroup)) $arrest[$thedate]++; else { if ($pieces[$i] == $crimegroup) $chargegroup[$thedate]++; else $charges[$thedate]++; } $i++; }}