while($row = mysql_fetch_array($retval, MYSQL_ASSOC)) {
echo " {$row['id']}. ". "<a href=\"/load/{$row['id']}/{$row['name']}\">{$row['name']}</a> <br> ".
"Music : {$row['lljhg2']} <br> ".
"Video : {$row['description']} <br> ".
"Song : {$row['artist']} <br> ".
"--------------------------------<br>";}
Some code Like this, I want {$row['name']}
in <a href=\"/load/{$row['id']}/{$row['name']}\">
I want this row results all spaces replaced by dash ('-').
If the result is:
Prince Reoy from USA
I want to print this:
prince-reoy-from-usa
Is it possible?