if ( $p = red_sql_query("polls","*","ORDER BY rand() LIMIT 1",TRUE) )
{
$count = 0;
$POLLS = "";
$split = split(",","$p[option]");
foreach ($split as $poll)
{
$count++;
$POLLS .= '<div><input type="radio" name="an" class="pollinput" value="o'.$count.'" onclick="submit();" style="vertical-align:middle;" />' .$poll.'</div>'."\n";
}
$red_build['POLL_USER_IMAGE'] = uimage($p['user'],"60",4,"");
$red_build['POLL_ID'] = $p['id'];
$red_build['POLL_VALUE'] = $p['poll'];
$red_build['POLL_TEXT'] = $p['poll'];
$red_build['POLL_OPTIONS'] = $POLLS;
$red_replace['red_polls'] = 1;
$red_build['POLL_LINK'] = red_links("poll","result",$p['id']);
}
Can someone help tell me what build and replace means and does? This is one of the scripts to build a poll, but I dont understand build and replace.