that is how you do it, as far as errors, i can't error check for you, but when you get that error, it just means there were issues with the results you got... change this line
$contacts = @mysql_query(
"SELECT id, contact_name, title, name, title_2, name_2, res_add, postal_add, phone, mobile, fax, email, orgid, regionid FROM contact WHERE regionid='$reg'");
to this
$contacts = mysql_query(
"SELECT id, contact_name, title, name, title_2, name_2, res_add, postal_add, phone, mobile, fax, email, orgid, regionid FROM contact WHERE regionid='$reg'") or die(mysql_error());
that will help you figure out where the problem is