From: Erek D. <er...@nb...> - 2004-04-09 01:11:03
|
Hi All, this is a snippet from survey_results.inc: Line 406: $sql = "SELECT C.content FROM question_choice C WHERE C.question_id='${qid}' AND C.content NOT LIKE '!other%' ORDER BY C.id"; if ($result = mysql_query($sql)) { for ($j = 0; $j < mysql_num_rows($result); $j++) $counts[mysql_result($result, $j, 0)] = null; mysql_free_result($result); } The only thing that I see this does is enumerates through the $counts array and resets everything to null, would it be better to change this to one line: $counts = array(); I have done this in my developement copy with no ill effects. Any of you know another purpose to this block? Regards, Erek Dyskant |