Class question

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
norm188
Forum Newbie
Posts: 8
Joined: Sun Mar 23, 2003 10:14 pm

Class question

Post by norm188 »

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.
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

Code: Select all

//display the links $row&#1111;1] is the link , $row&#1111;0] 
//is the id value 
echo "<a href="$row&#1111;2]" class="sps">$row&#1111;1]</a><br>"; 
&#125;
norm188
Forum Newbie
Posts: 8
Joined: Sun Mar 23, 2003 10:14 pm

Post by norm188 »

Thanks verry verry much for the quick reply

I realy appriciate it and it works.
User avatar
lazy_yogi
Forum Contributor
Posts: 243
Joined: Fri Jan 24, 2003 3:27 am

Post by lazy_yogi »

what does the class attribute mean ?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

lazy_yogi wrote:what does the class attribute mean ?
It's used in conjuction with CSS:
http://www.w3schools.com/css/default.asp

Mac
Post Reply