I want to insert a URL inside an echoed table row. Here is the URL and table column:

<a href="modify-user.php?id=<?php echo $row["id"]; ?>">Modify</a>

Here is the table column:

printf("<td class=\"listusers\">" "</td>");

Thanks for your help in advance.

Member Avatar


printf("<td class='listusers'><a href='modify-user.php?id=%d'>Modify</a></td>",$row['id']);

Something like that? Not sure what you're trying to do, nor the context in which you're trying to do this.

commented: @diafol, a million thanks. That works! +3

What exactly Do you want to say ? can you be more brief ? what is generated in browser when you echo or print.
<a href="modify-user.php?id=<?php echo $row["id"]; ?>">Modify</a>
and what you want?

Thanks, but diafol has already given me the answer I was looking for.