Unfortunately, no luck. I don't know what the problem is. It's like it just doesn't want to read the line break tag. It is especially crazy in the concatenated header string... it is reading the <strong>, the <em>, and displaying appropriately. It just refuses to read the <br />!
Here is the newest non-working code:
<?php
# if submit_hash is present, then pull up the attendance from specified hash
if($_GET['submit_hash'])
{
# select all the hashers from the specified hash
$query = "
SELECT
h.*,
ha.*
FROM
hashes as h,
hashers as ha,
hash_records as hr
WHERE
hr.hash_id = " . $_GET['hash_id'] . "
&& hr.hash_id = h.hash_id
&& hr.hasher_id = ha.hasher_id
ORDER BY
ha.hasher_name ";
$result = mysql_query($query) or die('Error selecting Hash attendance.');
$x = 1;
while($row = mysql_fetch_array($result))
{
if($x == 1)
{
echo '<strong>' . '#' . $row['hash_num'] . ' ' . $row['hash_name'] . ' - ' . date("D, d M Y", strtotime($row['hash_date'])) . '</strong><em> Total Hashers: ' . mysql_num_rows($result) . '</em>' . '<br />';
echo '<br />';
$x++;
}
# see if this person was the hare
if($row['hare_id'] == $row['hasher_id'] || $row['hare2_id'] == $row['hasher_id'] || $row['hare3_id'] == $row['hasher_id'])
{ $hare = '- hare';
}
else {
$hare = '';
}
echo '<br />';
echo '<br />' . $row['hasher_name'] . ' <b>' . $hare . '</b></br>';
}
} else if($_GET['submit_hasher'])
{
# if submit_hasher is present, pull up all of their hashes and aliases
# select all the hashes that this person has attended
$a_query = "
SELECT
h.*,
ha.*
FROM
hashes as h,
hashers as ha,
hash_records as hr
WHERE
hr.hash_id = h.hash_id &&
hr.hasher_id = ha.hasher_id &&
hr.hasher_id = " . $_GET['hasher_id'] . "
ORDER BY
h.hash_date DESC ";
$a_result = mysql_query($a_query) or die('Error selecting the person\'s Hashes . ');
$x = 1;
while($a_row = mysql_fetch_array($a_result))
{
if($x == 1)
{
echo '<strong>Hash Attendance Record For ' . $a_row['hasher_name'] . '</strong> <em>(' . mysql_num_rows($a_result) . ' total hashes)</em>' . '<br />';
echo '<br />';
$x++;
}
echo '<br />';
echo '<br />' . '#' . $a_row['hash_num'].' ' . $a_row['hash_name'] . ' on ' . date("D, d M Y", strtotime($a_row['hash_date']));
# see if this person was a hare
if($a_row['hasher_id'] == $a_row['hare_id'] || $a_row['hasher_id'] == $a_row['hare2_id'] || $a_row['hasher_id'] == $a_row['hare3_id'])
{
echo ' - <b>hare</b>';
}
echo '';
}
echo '';
}
echo '
<table width="100%">
<tbody>
<tr>
<td>
';
?>