In a page of PHP
I have a query of MySQL
simple. The final result is a list.
The part that generates the result
while($row = mysqli_fetch_array($result)) {
echo "<a href='".$row['url']."'>".$row['Name']."</a>, ";
}
This generates something like this:
Abc123, Def456, Ghi789,
But I do not want that last comma:
Abc123, Def456, Ghi789
How can I alter the PHP
to achieve this?