Tech Support Guy banner
Status
Not open for further replies.
1 - 3 of 3 Posts

· Registered
Joined
·
73 Posts
Discussion Starter · #1 ·
The existing mysql db has a field as described below. I would like to limit the image/graphic size to be uploaded.

Field=image, Type=text, Attributes=Blank, Null=no, Default=blank, Extra=blank

Is there a way to do it? Using php pages within site.

Is it done by the php code or thru settings within the mysql db?

All feedback welcomed. Thanks, nt :confused:
 

· Registered
Joined
·
15,981 Posts
Is the database just storing the filename of the image? If it actually has the image in MySQL, that should be a BLOB type.
If you're trying to limit the filesize of the images, you can use the filesize() function. If you're talking about the height/width of the pictures, use getimagesize().
 
1 - 3 of 3 Posts
Status
Not open for further replies.
Top