MySQL takes pictures

xiaoxiao2021-03-06  56

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 ();

?>

转载请注明原文地址:https://www.9cbs.com/read-117896.html

New Post(0)