Newbie query

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
In a calender script in a web site I have a php file with the following  
typical table cell entry:-

<td align=center width=$col6>";
   if($cweb[$i] != "")
    echo  "<a href=\"http://$cweb[$i]\">$cweb[$i]</a><br>"; plus lots more  
within the td.

Although I can use CSS on cells in the header row, it appears as though the  
echo element prevents me from applying an inline CSS style to this cell/td.
Is this expected behaviour?
Is there any way I can apply an inline CSS style to the cell?

On a related matter, how would I apply a CSS style to the hyperlink entry in  
the above example?
I am reasonably familar with HTML and CSS, but am lost in this PHP.
Also what is the significance of the \ after the a href=
Brian Tozer

Re: Newbie query

KiwiBrian wrote:
Quoted text here. Click to load it

No, PHP makes a HTML page, the same css rules apply on your "generated" page
as if you'd written the whole thing in HTML yourself.

Quoted text here. Click to load it

So, the normal way.

Quoted text here. Click to load it

td a{

Quoted text here. Click to load it

It escapes the following ", else your string would end, and you leave PHP
searching for the (illegal) constant "http://$cweb[$i]"

Rik Wasmus

Site Timeline