making clickable text from php script

后端 未结 2 414
既然无缘
既然无缘 2021-01-29 11:12

I have a php script below



        
相关标签:
2条回答
  • 2021-01-29 11:30

    Please echo the values inside anchor tag as

    <?php
    
    include 'db_connector.php';
    $result = mysqli_query($con, "SELECT operation FROM contract");
    while ($row = mysqli_fetch_array($result)) {
        echo "<a href='your url' >" . $row['operation'] . "</a>";
        echo "<br>";
        echo "<br>";
    }
    
    0 讨论(0)
  • 2021-01-29 11:40
    echo "<a href='whatever_your_url_is'>".$row['operation']."</a>";
    
    0 讨论(0)
提交回复
热议问题