![]() |
how do i check a image update in model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: how do i check a image update in model (/showthread.php?tid=31411) |
how do i check a image update in model - El Forum - 06-17-2010 [eluser]amipaxs[/eluser] Hi, I have a form for categories data and 1 category image, when i want to edit a field, i want to give the user the chance to change the first uploaded image, when the user doesn't want to upload a new image i have two posibilities, saves data with image info and no save image info at all.. Code: MODEL I can't check whether the field 'cat_img' is empty or not. any ideas?? thanks in advance how do i check a image update in model - El Forum - 06-17-2010 [eluser]danmontgomery[/eluser] Use $_FILES, not _POST. http://www.php.net/manual/en/features.file-upload.post-method.php how do i check a image update in model - El Forum - 06-17-2010 [eluser]amipaxs[/eluser] Ok, thanks a lot |