This weird. I have this smame setup on another database and it's working fine. However on this one, it's pulling data from all fields but the name field.
Here's the page:
http://pnanetwork.com/tamarac_lunch_members.php
Here's the code below is being used:
Any idea what the problem is? I've verified the correct spelling for 'name' and case sensitivity in the database, and all match.
include('dbconnect.php');
$query = ("select * from tbl_members where chapter='Coral Springs - Tamarac' AND unit='Lunch'");
//$query = ("select * from tbl_members where chapter='Coral Springs' AND unit='Lunch' order by name");
$result = mysql_query($query) or die("Query fail");
if (mysql_num_rows($result) == 0)
{
} else
{
echo "<CENTER>";
echo "<table border=1>";
while($row = mysql_fetch_array($result))
{
//echo "<table><tr><td>";
//echo "<table border=1>";
echo "<tr><td> " . " " . $row['name'] . " " . "</td><td> " . " " . $row['category'] ." " . "</td><td> " . " " . $row['business_name'] . " " . "</td><td> " . " " . $row['phone'] . " " . "</td><td> " . " " . $row['email'] . " " . "</td></tr>";
//echo "<td> " . $row['name'] . " ,</td><td> " . $row['category'] ." </td><td> " . $row['phone'] . "<br>\n";
//echo "</font>";
}
echo "</table>";
}
?>