PHP file, add a break?

sheri c

New member
I have a php file created for me, I have two div classes which are nicely separated by a page break or some other method, not sure. When showing the page live it looks nice. I wanted to add another section, so I copied the first div class, copied it, changed a query. Its showing up ok, but there is no break between these sections. I tried a page break command I found googling, it wanted some words, and the br command didnt work. Oh, I also tried to duplicate the CSS style (new produt) so as to see if a new div class created the separation, I dup'd those applicable styles but they didn't show on the list. (Adobe Dreamweaver CS5). Thanks, I've never used PHP and I can usually figure out things, but this one I cannot. Gotta be something so easy.
========================================================
<div class="rightcol">
<div class="newprodut">
<?php
$query = "SELECT * FROM tbl_products WHERE 1 AND pro_new = '2' ";
$result = mysql_query($query);
$list=mysql_fetch_array($result);
?>
<div class="imgthumb" align="center"><img src="upload/<?php echo $list['pro_image'];?>" alt="" /></div>

<div class="prd-title">Latest News:</div>
<!--<p>The next product
soon!.</p>-->
<?php echo stripslashes($list['pro_desc']);?>
</div>
[HERE IS WHERE THERE IS A NICE BREAK BETWEEN THE TWO CLASSES AS SHOWN ON LIVE PAGE VIEW]

<div class="home_comment">
<?php
$query = "SELECT * FROM tbl_products WHERE 1 AND pro_comment = 'Y' ";
$result = mysql_query($query);
$list=mysql_fetch_array($result);
$image = $list['pro_image'];
$show = $list['pro_show'];
?>
<?php echo $list['pro_sort_desc']; ?>
<?php if($show == 'N'):?><?php else:?><div class="imgthumb" align="center"><img src="upload/<?php echo $list['pro_image'];?>" alt="" /></div><?php endif;?>
<?php if($show == 'N') :?><span><?php echo $list['pro_desc'];?></span><?php else : ?><?php echo stripslashes($list['pro_desc']);?><?php endif;?>
<p>*</p>
</div>

----------------------------------------------------
the new coding I'm trying:

<div class="rightcol">
<div class="newprodut">
<?php
$query = "SELECT * FROM tbl_products WHERE 1 AND pro_new = '2' ";
$result = mysql_query($query);
$list=mysql_fetch_array($result);

?>
<div class="imgthumb" align="center"><img src="upload/<?php echo $list['pro_image'];?>" alt="" /></div>

<div class="prd-title">Latest News:</div>
<!--<p>The next product soon!.</p>-->
<?php echo stripslashes($list['pro_desc']);?>
</div>

<div class="newprodut">
<?php
$query = "SELECT * FROM tbl_products WHERE 1 AND pro_new = '1' ";
$result = mysql_query($query);
$list=mysql_fetch_array($result);

?>

<div class="imgthumb" align="center"><img src="upload/<?php echo $list['pro_image'];?>" alt="" /></div>



<div class="prd-title">Latest :</div>
<!--<p>The nextsoon!.</p>-->
<?php echo stripslashes($list['pro_desc']);?>
</div>
<div class="home_comment">
<?php
$query = "SELECT * FROM tbl_products WHERE 1 AND pro_comment = 'Y' ";
$result = mysql_query($query);
$list=mysql_fetch_array($result);
$image = $list['pro_image'];
$show = $list['pro_show'];
?>
<?php echo $list['pro_sort_desc']; ?>
<?php if($show == 'N'):?><?php else:?><div class="imgthumb" align="center"><img src="upload/<?php echo $list['pro_image'];?>" alt="" /></div><?php endif;?>
<?php if($show == 'N') :?><span><?php echo $list['pro_desc'];?></span><?php else : ?><?ph
 
Back
Top