<?php
@mysql_connect("localhost", "root", "12345") or die(mysql_error());
mysql_select_db("phpmysql");
$sql = "CREATE TABLE IF NOT EXISTS uploadfile(
id SMALLINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(150),
type VARCHAR(150),
size INT UNSIGNED,
content MEDIUMBLOB);";
<?php
@mysql_connect("localhost", "root", "12345") or die(mysql_error());
mysql_select_db("phpmysql");
$sql = "CREATE TABLE IF NOT EXISTS uploadfile(
id SMALLINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(150),
type VARCHAR(150),
size INT UNSIGNED,
content MEDIUMBLOB);";
mysql_query($sql) or die (mysql_error());
?>
</body>
</html>