Jump to content

Word Wrap Problem 1


ShanesProjects

Recommended Posts

Why don't it word wrap it?
[code]
$Comment2 = wordwrap($Comment, 40, "<br />\n");
echo"<center><table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='35%' height='100'>
  <tr>
    <td width='100%' height='18' bgcolor='#808080'>
    <p align='center'>Posted by: <font color='Black'><a href='mailto:$EMail'>$First_Name</a></font></td>
  </tr>
  <tr>
    <td width='100%' height='81' bgcolor='#C0C0C0' align='left' valign='top'>
    <p align='center'>$Comment2</td>
[/code]
Link to comment
Share on other sites

News.php
[code]$News=$row["News"];
$News2 = wordwrap($News, 80, "<br/>\n");
$sql = mysql_query("SELECT * FROM news_comment WHERE Title = '$Title'");
$CommentCount = mysql_num_rows($sql);
echo"<center><table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='500'>
  <tr>
    <td width='100%' align='center' bgcolor='#808080'>
    <p style='margin-top: 0; margin-bottom: 0'><font color='#C0C0C0'>Title:</font> <font color='Black'>$Title
    </font>
    <p style='margin-top: 0; margin-bottom: 0'><font color='#C0C0C0'>Date:</font> <font color='Black'>$Date_Added</font><br />
    <font size='1'><a href='Add_News_Comment.php?Title=$Title'>Add A Comment</a></font>/<font size='1'><a href='View_News_Comments.php?Title=$Title'>View Comments(</font><font size='1' color='Red'>$CommentCount</font><font size='1'>)</font></a></td>
    </tr>
    <tr>
    <td width='100%' align='center' bgcolor='#C0C0C0' bordercolor='#000000'><font color='Blue'>$News2</font></td>
    </tr>
    </table></center>
<br />";[/code]

View_News_Comments.php
[code]$Comment=$row["Comment"];
$Comment2 = wordwrap($Comment, 40, "<br />\n");
echo"<center><table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='500'>
  <tr>
    <td width='1000' align='center' bgcolor='#808080'>
    <p style='margin-top: 0; margin-bottom: 0'><font color='#C0C0C0'>Posted by:</font> <a href='mailto:$E_Mail'>$First_Name</a>
    </td>
    </tr>
    <tr>
    <td width='1000' align='center' bgcolor='#C0C0C0' bordercolor='#000000'><font color='Blue'>$Comment2</font></td>
    </tr>
    </table></center>
<br />";[/code]
Link to comment
Share on other sites

I do most of my developing in Fire fox then test in IE. The reason that I do this.. Almost every thing that works fine in FireFox will work fine in IE but not the other way around. So it is best to develop with Fire Fox in mind and then to fix any IE errors.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.