Jump to content

Problem With Dynamic Text In Php And Dreamweaver


DeMoN

Recommended Posts

ok so heres the issue,

 

i'm developing a dynamic page for a client using php with a mysql backend, and using dreamweaver to edit it all.

 

i just finished the table for the news section of the web site and when i go and enter some test data i find that the data i put in is not wraping inside the table its in it is just making the page expand.

 

how can i fix it so when it gets to the end of the table it will go to a new line.

 

http://pushrocksface.com thats the site

 

this is the code from the index page.

 

<?php require_once('Connections/pushrock.php'); ?>
<?php
$maxRows_Recordset1 = 6;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
 $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;

mysql_select_db($database_pushrock, $pushrock);
$query_Recordset1 = "SELECT * FROM news ORDER BY `date` ASC";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $pushrock) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);

if (isset($_GET['totalRows_Recordset1'])) {
 $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
 $all_Recordset1 = mysql_query($query_Recordset1);
 $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<link href="css/style.css" rel="stylesheet" type="text/css">
<body>
<?php include('./include/header.php'); ?>

 <tr>
 <TD background="/slices/images/temp_19.gif">  	 </TD>
 <TD COLSPAN=7 background="/slices/images/temp_20.gif"><table width="529"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
         <tr>
           <td><p><img src="slices/NEWS.gif" width="210" height="19"></p>
               <?php do { ?>
               <table width="558"  border="0" cellspacing="0" cellpadding="0">
               <tr>
                 <td width="432" class="big"><?php echo $row_Recordset1['title']; ?></td>
                 <td width="2%"> </td>
                 <td width="23%"><?php echo $row_Recordset1['date']; ?></td>
               </tr>
               <tr>
                 <td width="432"> </td>
                 <td> </td>
                 <td>By: <?php echo $row_Recordset1['poster']; ?></td>
               </tr>
               <tr>
                 <td width="432"><?php echo ucfirst($row_Recordset1['news']); ?></td>
                 <td> </td>
                 <td> </td>
               </tr>
               <tr>
                 <td width="432"> </td>
                 <td> </td>
                 <td> </td>
               </tr>
               <tr>
                 <td width="432"> </td>
                 <td> </td>
                 <td> </td>
               </tr>
                             </table>
         <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
           <p> </p></td>
         </tr>
       </table></TD>
 <TD background="/slices/images/temp_21.gif">  	 </TD>
<TD align="center" valign="top" background="/slices/images/temp_22.gif"><?php include('./include/random.php'); ?></TD>
 </tr>




<?php include('./include/footer.php'); ?>
<?php
mysql_free_result($Recordset1);
?>
</body>
</html>

Share this post


Link to post
Share on other sites

sry forgot to update the post.

 

the problem was the other person i had testing decided to enter one long string of characters so that is what it was showing ,

 

i fixed it and it is now working

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...