Welcome Guest, Not a member yet? Register   Sign In
Need help uploading file and get the file name to store in database mysql...URGENT
#3

[eluser]masipung[/eluser]
i have checked, but nothing.
i have tried tweaking the code, and if i'm remove several code below, the program can running well, but it's cannot storing filename of image that i have uploaded to database.

>$image = $this->upload- >data();
> if ($image[‘file_ name’])
> {
> $data[‘image’ ] = “.\images\”.$ image[‘file_ name’];
> }


> $thumb = $this->upload- >data();
> if ($thumb[‘file_ name’])
> {
> $data[‘thumbnail’ ] = “/images/”.$ thumb[‘file_ name’];
> }
> $this->db->insert_ string(‘products ‘, $data);


does anyone can help me? or for the member in this forum who success create application like me, can you share (just, how to upload image/video and storing the filename in the database)?


once again, sorry my english isn't good.


Messages In This Thread
Need help uploading file and get the file name to store in database mysql...URGENT - by El Forum - 02-25-2009, 08:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB