mysql_hex_string()
unsigned long mysql_hex_string(char *to, const char *from, unsigned long length)
This function translates a hexadecimal string to a format
that can be used in an SQL statement. The hexadecimal string is to be
given in the from position or variable of
the function. The results are saved to the
to variable named, and terminated with a
NULL byte. The length is the length of
bytes of the from value. The
to variable needs to be the
length times 2 plus 1 in length.