Someone
public php v1 · immutable<?php$result = $db->query("SELECT rating FROM Votes WHERE widgetid=%d, userid=%d", $widgetId, $userId);while(($row = mysql_fetch_object($result)) !== NULL) { $total += $row['rating'];}?><?php$result = $db->query("SELECT rating FROM Votes WHERE widgetid=%d, userid=%d", $widgetId, $userId);while(($row = mysql_fetch_object($result)) !== NULL) { $total += $row['rating'];}?>