What I want is to add up all values in the points column These are stored as INT(4)
However its echoing Array when I try to display result
$pipq = mysqli_query($con,"SELECT `points` FROM `table` WHERE `result` !='2'");
$pips = mysqli_fetch_assoc($pipq);
$sum = 0;
do {
$sum += $pips[0];
} while($pips = mysqli_fetch_assoc($pips));
Any help would be appreciated
do { } while()