Jump to content

Using a class in a link


j05hr

Recommended Posts

I've got these links that in html you very simply just add class="blabla" in your link.  I'm trying it in my PHP link and it doesn't seem to be working, is this correct for where to put the class?

 

$content .= '<a class="pageNumber" href="buying.php?pg=' . $i . '">' . $i . '</a>' . "  ";
	} else {
		$content .= '<a class="pageNumber" href="buying.php?pg=' . $i . '">' . $i . '</a>' .  "  ";

Link to comment
https://forums.phpfreaks.com/topic/184369-using-a-class-in-a-link/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.