Hi everyone!
I'm trying to add the class="" to an image tag in php but I can't make it work. The code is this:

echo "<td width=\"$columnWidth%\" align=\"center\"><a href=\"$url\"><img class="pImageCenter" src=\"$image\" border=\"1\" /><br>$name</a></td>\r\n";

Help please

Escape the quotes

echo "<img class=\"someClassName\" />";

or use single quotes

echo '<img class="someClassName" />';

-MrDJK

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.