RSSAll Entries Tagged With: "blob"

Upload and store files in Mysql using PHP : Part 1 – Design MySql Table

A MySQL database can be used to store files uploaded using PHP.The table columns must be created using BLOB columns to hold the binary file.The blob column can hold up to 65,535 characters.
Example code:

<?php
$con = mysql_connect("localhost", "", "");
mysql_select_db("w3m");
$sql = "CREATE TABLE updfiles ("
[...]