I have a PhP variable like
<?php
$query=mysql_query("SELECT * FROM visited_city WHERE username='$user' LIMIT 3");
while($row=mysql_fetch_assoc($query)){
$city=$row['city'];
echo '<a href="'.$city.'">'.$city.', </a>';
}
?>
Results=
Dhaka, Delhi, Mumbai,
Actually, I want like
Dhaka, Delhi, Mumbai
I am sorry, there are so many answers I found but did not match me...