i have selected some rows from mysql
and i want put underscore between the words
like this :
<?php
$query='SELECT * FROM subcates WHERE maincates_id=1';
$result=mysql_query($query);
while($row=mysql_fetch_array($result, MYSQL_ASSOC)){
echo "<li><a href='".$row['name'].".php?c=".$row['id']."&gov=1&h=1'>".$row['name']."</a></li>";
}
?>
i want when select the name give me this :
in database ==> first second
i want it when selected ==> first_second
thx