Here's the code. I know the query is returning the right results because in the HTML source it prints the <br> tags where they should be. The echo statement right before it though doesn't print anything in the HTML.
$cur_day = date("Y-m-d 00:00:00",mktime(0,0,0,$month,$day_sql,$year));
// Guides NOT Available
$sql = "SELECT gs_guide.*
FROM gs_guide, gs_group
WHERE gs_group.guideno = gs_guide.guideno
AND '$cur_day' BETWEEN arrdate AND depdate
GROUP BY guideno";
$result = mysql_query($sql);
if (!$result)
echo mysql_error();
$num_results = mysql_num_rows($result);
if ($num_results < 1)
{
echo " ";
}
else
{
for ($i = 0; $i < $num_results; $i++)
{
$row = mysql_fetch_row($result);
echo $row["name"]."<br>";
}
}