I have a variable in an SQL query-based while loop. e.g:
$sql = mysql_query("SELECT * FROM table");
while($row=mysql_fetch_array($sql)){
echo $row['row'];
}
The while loop is functional and works, however the variable contains duplicate strings.
How do I prevent duplicate row variables echoing in my while loop with PHP?
Note: This is a PHP question, not an SQL question.