Web Hosting Talk







View Full Version : Another PHP problem, how to use   in PHP?


bow-viper1
07-22-2004, 09:52 PM
$TPL_categories_value .= "<TR>\n<TD width=\"20\">";

I want a space (nbsp;) after 20\"> So there is a space in that cell, however I run into errors when I do it directly, so I googled for a while. I found some people use something like str_replace to solve this problem, but I'm unsure exactly how to use this, so any help is much appreciated.

RackNine
07-22-2004, 10:10 PM
bow,

Seems to work from here. Maybe you should try a different quote?

ie:

$name = '<tr><td width="20">&nbsp;';

Sincerely,

-Matt

bow-viper1
07-22-2004, 10:36 PM
Argh, I just tried it again and it did work heh.. maybe my re-upload failed after I did it last time.. not really sure. But thanks.

M1A1
07-23-2004, 03:56 PM
I think you should put ( \&nbsp; ) there

M1A1
07-23-2004, 04:01 PM
Repost: I think you should put ( \ & nbsp ) there!