## Heres where I add images to DB with field type of BLOB for image
if ( ($submit == 'Add Image') && ($userid != 'demo') ){
if ($image != 'none'){
$name = strtr($name, "'", " ");
$image = addslashes(fread(fopen($image, "r"), filesize($image)));
mysql_select_db($dbase) or die(
mediumtext is long enough, but you are putting binary data into it, not
text. You should be using mediumblob. The limit is 16M for that column
type.
-Rasmus
On Fri, 29 Mar 2002, Jay Paulson wrote:
> Hello--
>
> I can't quite seem to get this to work. What I'm trying to do is pull data
> out
2 matches
Mail list logo