It generally means that you've got an error in your SQL.
$sql = "SELECT * FROM myTable"; // table name only do not add tb
$result = mysql_query($sql);
var_dump($result); // bool(false)
Obviously, false
is not a MySQL resource, hence you get that error.
EDIT with the code pasted now:
On the line before your while
loop, add this:
if (!$result) {
echo "Error. " . mysql_error();
} else {
while ( ... ) {
...
}
}
Make sure that the tb_address_book
table actually exists and that you've connected to the DB properly.