Page 1 of 1

Class question

Posted: Sun Mar 23, 2003 10:14 pm
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.

Posted: Sun Mar 23, 2003 10:22 pm
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;

Posted: Sun Mar 23, 2003 10:36 pm
by norm188
Thanks verry verry much for the quick reply

I realy appriciate it and it works.

Posted: Mon Mar 24, 2003 7:49 am
by lazy_yogi
what does the class attribute mean ?

Posted: Mon Mar 24, 2003 7:51 am
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