0

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.

3
Contributors
3
Replies
18
Views
3 Years
Discussion Span
Last Post by mexabet
1
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.

Edited by diafol

Votes + Comments
@diafol, a million thanks. That works!
0

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?

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.