0
I have this echo below and would like to apply the class buttonlink
in it, but I’m not getting.
I don’t know if it’s the quotation marks, that backslash or if it’s not possible to do that, if anyone can help.
echo "<a href=\"" . $pasta . $resultado["nomearq"] . " class="buttonlink"\">".$resultado["dataup"]." / " . $resultado["nomearq"] . "</a><br />";
It’s because the
$
– Jéf Bueno
Ah, wait. You want "buttonlink" to be literal?
– Jéf Bueno
@LINQ As so literal?
– Arthur Oliveira
Literal, man. Literal.
– Jéf Bueno
@LINQ I want to change the color and font size that comes out when loading the page, understand? Applying the class
buttonlink
– Arthur Oliveira
Arthur, I noticed that you tried to mark several answers as correct. This can only be done in one reply, ok?
– Jéf Bueno
@LINQ I thought I could, but I marked yours for being the first to answer!
– Arthur Oliveira
Just for the record, the downvote is not mine, even so I voted to close because this is the basics of PHP and has been debated here, I think the best question to understand this is this https://answall.com/q/4652/3635 that speaks of the characteristic of language. Observing: the answers are all correct, but I want to make it clear although there are no significant differences in the use of simple quotes in HTML, the question is more that you may get confused if mix different use, but it’s just a hint, nothing serious.
– Guilherme Nascimento