StackOverflow,
$resultpaid = $mysqli->query($paidquery);
while ($row=$resultpaid->fetch_array())
{
print $row['paid'] .'<br />';
}
I realize this should be simple, unfortunately, I’m not well versed in PHP. I’m trying to take the result set from this while loop and assign them to variables. Basically right now it finds two rows, both with integer values. So when it iterates through, it prints out 250 and 260. I’m trying to figure out if there’s a way to assign each row a variable in order to add the integers together, or reference them individually at a certain point.
Sure, try this,