MySQL takes pictures, please give good guidance!!!
TRY.PHP:
MySQL_Connect ("AdminUser3", "root", "");
MySQL_SELECT_DB ("MyWeb");
$ query = "SELECT BIN_DATA, FILETYPE from binary_data where id = '2'";
$ result = mysql_query ($ query);
$ DATA = mysql_result ($ Result, 0, "Bin_Data");
$ TYPE = mysql_result ($ Result, 0, "FileType");
Header ("Content-Type: $ TYPE");
Echo $ DATA;
MySQL_Close ();
?>