How to transform the data from a sql table into a link?

0

I'm learning PHP and so I do not know the technical terms, so this is not only a question, but also a puzzle !!! I created the databases and the tables everything works normal, but now I've stuck.

Now I want to get this row and make a link, using the value of it. I hope you understand! LOL Thanks.

    
asked by anonymous 22.08.2017 / 02:35

2 answers

0

I think this helps you:

<?php while($row = $result->fetch_assoc()): ?>
    <tr>
        <td>
            <a href="../Usuario/apostilas.php/<?= $row['nomecurso'] ?>"> <?= $row['nomecurso'] ?></a>
        </td>
   </tr>
<?php endwhile; ?>
    
28.08.2017 / 21:55
-2
echo '[...] <a href="'.$row['coluna_link'].'">'.$row['nome'].'</a> [...] ';
    
22.08.2017 / 04:48