Argh... I spoke too soon.
I'm now having trouble getting only the results with "BOB" in the name field.
$sql = SELECT * FROM table WHERE enable > 0 AND name = 'Bob' ORDER BY name ASC";
$result = @mysql_query($sql, $connect) or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$name = $row['name'];
$email = $row['email'];
$address = $row['address'];
$display_block = "
<font color=black size=2>$name, $address ($email)</font>";
}
I have this and instead of just "bob" I get the entire list of people in my table. I've obviously missed something, and I'm not sure where.