Jump to content

MySQL PHP Images


lilman

Recommended Posts

ya just use a BLOB type column, and you should be fine...

example of what a database table might look like...

[code]CREATE TABLE `files` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `name` varchar(64) NOT NULL,
  `type` varchar(4) NOT NULL,
  `size` int(10) unsigned NOT NULL default '0',
  `dtime` datetime NOT NULL,
  `data` blob NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `name` (`name`,`size`),
  KEY `dtime` (`dtime`)
) ENGINE=MyISAM;[/code]


Link to comment
https://forums.phpfreaks.com/topic/27621-mysql-php-images/#findComment-126331
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.