im reading data from an mysql database, and for text formating i used somthing like this:
$text2=str_replace ("\n", "<br>", $text1); $text3=str_replace (" ", " ", $text2);
but when i use $text3=str_replace (" ", " ", $text2); it stretches the table that the text is diplayed in!
http://www.oglprogramming.com/index.php?a=viewtut&id=1
how can i fix this?
i wonder where is your stretched table... i went to the site.. and it ask me to log on to view the tut... 🙁
sign up and log in 😛
please create a guest account show the guest id and password here. more peeps will help IMHO
username: guest password: 12345678
$text3=str_replace (" ", " ", $text2);
is correct already why u want
$text3=str_replace (" ", " ", $text2);
the second approach will make the it empty