I'm using this in a php script :
//display the links $row[1] is the link , $row[0]
//is the id value
echo ("<a href=\"$row[2]\">$row[1]</a><br>");
}
I would like to add class="sps" but can't get it to work.
Is this possible and how can i get it done.
Class question
Moderator: General Moderators
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
Code: Select all
//display the links $rowї1] is the link , $rowї0]
//is the id value
echo "<a href="$rowї2]" class="sps">$rowї1]</a><br>";
}- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
It's used in conjuction with CSS:lazy_yogi wrote:what does the class attribute mean ?
http://www.w3schools.com/css/default.asp
Mac