post - comment with no spaces will destroy my table comment -
$display = mysql_query("select * table_comment blogid=$theid order comment_id desc")or die(mysql_error()); echo "<table border='0' align='center' width='900px' style='margin-bottom:20px;margin-top:-20px;background-color:brown;border-top-left-radius:50px;border-top-right-radius:15px;border-bottom-left-radius:15px;border-bottom-right-radius:50px;'>"; while($r = mysql_fetch_array($display)) { echo "<tr>"; echo "<td align='left' style='font-size:15px;padding-left:25px;color:powderblue'><b style='color:lightgreen'><i>".$r['post_name']."</b></i> said:</td>"; echo "<td align='right' style='font-size:15px;padding-right:25px;'><b style='color:yellow'>".$r['time']."</b>  <b style='color:orange'>".$r['date']."</td>"; echo "</tr>"; echo "<tr>"; echo "<td align='justify' style='color:white;font-size:20px;padding-left:25px;'> ".$r['comment_area']."</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' align='center' style='padding-right:25px;color:yellow'>_______________________________________________________________________________________________________</td>"; echo "</tr>"; } echo "</table>"; echo "</div>"; i have codes table comment, when try comment spamming on opposite edge of comment area, without spaces , when hit post button, there, texts in comment cannot seen. table stretched far out of original comment table. can me please?
you can use css fix problem.
html:
<div class="test">thisisverylonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglongspamcomment</div> css:
.test { word-wrap: break-word; overflow: hidden; width:250px;}
Comments
Post a Comment