1

I want to make underline at specific part using href in php. Please help..

Here is my code..

             echo "Welcome " . $row1['name'] . "Sir  ";

//I want to make underline only this part: $row1['name'];
Yong.K
  • 11
  • 5

2 Answers2

2

You can actually put anchor tag directly inside your php echo

echo "Welcome <a href='#yourlink'>" . $row1['name'] . "</a> Sir "; 
fmsthird
  • 1,745
  • 2
  • 17
  • 34
0
<?php
echo " Welcome <a href='hyperlink'>" . $row1['name'] . "</a> Sir "; 
?>

This will work, without any flow

Dupinder Singh
  • 7,175
  • 6
  • 37
  • 61