php - Making picture a link to -


how can make picture link using coding format?

if($row['name'] !== "") {    echo "<br/><img src='../login/image/";   echo $row['name'];   echo "'  style='width: 300px;height: 400px;'>"; 

you can this, don't need echos.

if($row['name'] !== "") {    echo "<br/><a href='link'><img src='../login/image/" . $row['name'] . "' style='width:300px; height:400px;'></a>"; 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -