CSS class in a PHP link?

Jessi Ray

New member
Hello there. I'm trying to edit the style in a PHP code, can someone offer any help? The code is:

"<a href=\"$urlPath/viewtopic.php?f=$row[forum_id]&t=$row[topic_id]&p=$row[post_id]#p$row[post_id]\" TARGET=\"_blank\">" .
$row["topic_title"] .
"</a>

I would like to have the equivalent of <a href= "link" class="nav" target="_blank">URL</a> but the class="nav" keeps stumping me. I do not have much experience with PHP... CSS is my thing, but I'd really like to get this script looking like it should. Anyone willing to help?
 
Back
Top