I am trying to get a variable to increment by adding a counter to the end of it. Here is the code.
$counter = 0;
while($results = $query->fetch_assoc()){
$var . ++$counter = $results['row'];
} // while loop
My target outcome...
$var1 = result 1
$var2 = result 2
$var3 = result 3
It is trying to set $counter = result.
$var . ++$counter.