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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -