Menu
Hi
Below is a loop that lists enteries in my data base. I’m trying to add divs that will place a box around each entery with some formating using css.
I cannot get it to work it will dispay the box but each item is placed withing each other inside another box
any help is great
[code=php]
$i=0;
while ($i < $num) {
echo ‘<div id= “formmessage”>’;
$fistname = mysql_result($result,$i,”childfirstname”);
$lastname = mysql_result($result,$i,”childlastname”);
$dob = mysql_result($result,$i,”childdob”);
echo “First Name: $fistname<br>
Last Name: $lastname<br>
DOB: $dob
<br>”;
echo ‘<br>’;
echo ‘<div>’;
$i++;
}
echo ‘<div>’;
?>