There's a function in PHP called mysql_field_type. It returns a string type variable with int, blob, char, etc..the complete syntax is:
string mysql_field_type(int result, int field_offset);
So, you could use:
$result = mysql_query("select * from table where record='myrecord'");
mysql_field_type($result,2);
//where 2 is the offset of your field in the row 'result'
Hope this helps!