CodeIgniter Forums
Updating record with one image... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Updating record with one image... (/thread-55418.html)



Updating record with one image... - El Forum - 10-25-2012

[eluser]Felipe Deitos[/eluser]
Hi, i am making a news system, i am already inserting the news this are the fields in db(id, date, title, content, image)
I am using the jquery validate to validate the form...
So when i am inserting if i have not selected a image the validate will tell me "Please insert image".
Until here everything is working fine.

But when i update this record all fields come with the record value...
The input title comes with the value "nice title"
How can i put the value in the file field?
Cuz if i dont put any value the jquery validade will tell "Please insert image", even if the image is in record...

This is confuse but i hope someone can help me...

Thanks!