Forum Moderators: coopster

Message Too Old, No Replies

Cell border

         

Mark Barrett

4:32 pm on Jun 11, 2005 (gmt 0)

10+ Year Member



I don't know why I'm making such hard work of this - but please - how do I put a border round a cell within a PHP script.

I have tried my manuals, Google and every permutation I can think of. It should be so simple. I am missing something somewhere . .!

Any guidance will be greatly appreciated.

Thanks

RonPK

4:45 pm on Jun 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



echo '<td style="border: 1px solid red;"> cell </td>';

Mark Barrett

6:13 pm on Jun 11, 2005 (gmt 0)

10+ Year Member



Ron

Thanks so much - that's sorted my problem.

I had actually tried style="border: 1px solid red;" already, but in conjunction with print not echo.

For some reason it didn't work with print and the script just failed.

Is that a salutory lesson I have learned there i.e. that I should never use print.Or can anyone tell me - is there ever a right time to use print instead of echo?

Mark

coopster

6:40 pm on Jun 11, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



There is a link on the PHP print() [php.net] manual page that might answer your question.