A
A
Alexander Kudryashov2015-01-03 20:23:34
PHP
Alexander Kudryashov, 2015-01-03 20:23:34

Apostrophes in PHP, what to do?

Good evening.

printf ("<a href='network.php?id=%s' class='href' target='_blank'>%s</a>", $myrow["id"], $myrow["sitename"] );

There is such a PHP code, I want to change apostrophes in <a>quotes, but PHP error.
How to solve the problem? Is it possible at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rishat Kadyrov, 2015-01-03
@Spacegrey

printf ("<a href=\"network.php?id=%s\" class=\"href\" target=\"_blank\">%s</a>", $myrow["id"], $myrow["sitename"] );

There are a couple more ways.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question