php loops

Code:
<?php
$result = mysql_query( "SELECT * FROM reminder_events ORDER BY reminder_date DESC" );
$nr = mysql_num_rows( $result );
if(empty($nr))
{
echo("
<tr>
<td colspan='3'>No Reminders setup</td>
</tr>
");
}
while( $row = mysql_fetch_array( $result ))
{
$reminder_name = $row["reminder_name"];
$reminder_desc = $row["reminder_desc"];
$reminder_date = $row["reminder_year"]."-".$row["reminder_month"]."-".$row["reminder_date"];
$reminder_id = $row["reminder_id"];

echo("

<tr>
<td width='20%' id=reminder_body_name>$reminder_name</td>
<td width='60%' id=reminder_body>$reminder_desc</td>
<td width='10%' id=reminder_body_date>$reminder_date</td>
<td width='10%'><a href='reminder_list.php?reminder_id=$reminder_id'>delete</a></td>
</tr>
");
}
mysql_free_result( $result );
?>

The above code is working fine but I am trying to introduce a double line break after each set oif results - ie after the line:
<td width='10%'><a href='reminder_list.php?reminder_id=$reminder_id'>delete</a></td>
</tr>
If I use the <br /> tag it is just appended to the top of the page
doctorbillTechAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris StanyonWebDevCommented:
If you want a space after each set of results, simply add a blank Table Row (<tr>):

<tr>
<td width='20%' id=reminder_body_name>$reminder_name</td>
<td width='60%' id=reminder_body>$reminder_desc</td>
<td width='10%' id=reminder_body_date>$reminder_date</td>
<td width='10%'><a href='reminder_list.php?reminder_id=$reminder_id'>delete</a></td>
</tr>
<tr><td colspan='4'>&nbsp;</td></tr>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
Chris is right.  You can not put a <br> in the middle of a 'table'.  <table>s and <tr>s and <td>s are containers and you can't put anything between them.  If you do, it gets put outside the table.  Somewhere.  All table content must go in the <td>s.
Brian TaoSenior Business Solutions ConsultantCommented:
Wrap each set of results (in this case, each <tr>) in <table> tags to make them individual tables, and then put the <br> tags between tables.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Julian HansenCommented:
In addition to the above,

The mysql library has been deprecated as of PHP 5.5 http://php.net/manual/en/migration55.deprecated.php. You might want to consider moving to mysqli
$result = mysql_query( "SELECT * FROM reminder_events ORDER BY reminder_date DESC" );

Open in new window

Ray PaseurCommented:
This doesn't have anything to do with formatting HTML tables, but Julian is right - MySQL is barely even on life support any more.  Get rid of it now, to avoid a catastrophe later.  Here's how to make the move away from the old, deprecated MySQL to one of the supported extensions.
http://www.experts-exchange.com/articles/11177/PHP-MySQL-Deprecated-as-of-PHP-5-5-0.html
doctorbillTechAuthor Commented:
Solved
Thanks for the advice
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.