Hey,
Me again...
I have got a text to break(+2 colums)using php!
The text contains html/css functions.
I try it but php doesn't respect my HTML/CSS functions. It cut them to !
$Max = strlen($Result["content"]);
if ($Max > "200") {
$Max = $Max / 2;
$Max = round($Max);
$Max = $Max + 30;
} else {
$Max = $Max;
}
if ($Result["image"]) {
echo "<h1 class=\"Actualite\">$Result[titre]</h1><h3 class=\"GrisNumArticle\">Article n°$Result[id], Date: $Result[jour]/$Result[mois]/$Result[an]<br></h3>";
echo "
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr valign=\"top\"><td width=\"204\"><p class=\"GrisFoncé\"><img src=\"_img/actualite/$Result[image]\" class=\"detourage\"><br>";
echo wordwrap($Result[contenu], $Max, "</p></td><td width=\"24\"></td><td width=\"204\"><p class=\"GrisFoncé\">");
echo "</p></td></tr></table>";
} else {
echo "<h1 class=\"Actualite\">$Result[titre]</h1><h3 class=\"GrisNumArticle\">Article n°$Result[id], Date: $Result[jour]/$Result[mois]/$Result[an]</h3>";
echo "
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr valign=\"top\"><td width=\"204\"><p class=\"GrisFoncé\">";
echo wordwrap($Result[contenu], $Max, "</p></td><td width=\"24\"></td><td width=\"204\"><p class=\"GrisFoncé\">");
echo "</p></td></tr></table>";
}
Thanks for helping
Max