I am trying to echo information into a slider , but, it keeps repeating the entire slider instead of jus inserting the fields aloone. i know it is the closing tag but i dont know how else to do it..any ideas? i just want to post like address 1 address 2 addreess 3 in decending order form the search.
<?php
while($row=mysql_fetch_array($result)){
$file=$row ['photourl'];
?>
<div class="body2">
<div class="main">
<section id="content">
<div class="wrapper">
<article class="col1">
<div id="slider">
<img src="images/img1.jpg" alt="" title="<strong><?php echo $row['address'] ?></strong><span> <?php echo $row['bathroom'] . " bathrooms," . $row['bedroom'] . " bedrooms"?> Price: <?php echo $row['price'] ?> <a href='view-prop.php?address=<?php echo $row['address'] ?>'>Read more</a></span>">
<img src="images/img2.jpg" alt="" title="<strong><?php echo $row['address'][1] ?></strong><span>8 rooms, 4 baths, 4 beds, building size: 4500 sq. ft. Price: $ 500 000 <a href='chateau-lingfield.html'>Read more</a></span>">
<img src="images/img3.jpg" alt="" title="<strong><?php echo $row['address'][2] ?><span>8 rooms, 4 baths, 4 beds, building size: 4500 sq. ft. Price: $ 500 000 <a href='property.html'>Read more</a></span>">
</div>
</article>
<?php
}
?>