Deposit pictures in MySQL database

xiaoxiao2021-03-05  22

/ *

* Put the image into the MySQL database

*

#

# 数据 数据 的 数据 结构`

#

Create Table Images (Picid Int (3) Not Null Auto_INCREMENT, PICDATA Longblob Not Null, Pictext Varchar (100) Not Null Default ', Primary Key (Picid) TYPE = MyISAM;

* / if (TRIM ($ PICFile [0])! = "") {$ link = @ mysql_connect ("localhost", "root", "root"); // Connect, replace root with your specific connection name, Specific connection password replacing root if ($ link == false) {echo "