I want to add the value $g1 or $g2 depending on how many i have... how would i write this??
$t = 1;
$result6 = mysql_query ("SELECT * from results_data where group_id = $latest_group_id");
while ($row6 = mysql_fetch_array($result6)) {
$resultid= $row6[result_id];
$userid = $row33[id];
$result = mysql_query ("update tippingresults set choice = '$g[$t]' where resultid = '$resultid' and userid = '$userid'") or die("INSERT error0: ".mysql_error());
$t ++;
}