[PHP-DB] Another Image prob

2001-09-14 Thread Todd Moy
I'm new at this and i'm sure that this has been answered before, but anyway... I am trying to retrieve images from a MySQL database. They are stored as BLOBs with the following table format: Database metonym_metonym - table imgs Field TypeAttributes NullDefault Extra fk_proj_id

[PHP-DB] problemhandling form variables

2001-09-18 Thread Todd Moy
I have an upload field on a form that is optional for the user. Hence, they may post an image or not. If not, a default image is assigned. Here is my logic and the corresponding error: /*$imgupload is the file field on the form*/ if(!$imgupload){ $imglink=$imgpath.$defaultimg; //