hello , is there something wrong with my code , why when i upload logo folders from handlers is not updating and my database also.
heres the code
$logo_image1=$_FILES['companylogo']['name'];
if($logo_image1!='')
{
$uploaddir="../../../engine/handlers/company_logo/";
$uploadfile = $uploaddir.basename($_FILES['companylogo']['name']);
move_uploaded_file($_FILES['companylogo']['tmp_name'], $uploadfile);
$blog_image= basename($_FILES['companylogo']['name']);
}
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Cim@manacim
Cim - 0 likes
- jaxcatz@jaxcatz
jaxcatz - 0 likes
- Cim@manacim
Cim - 0 likes
- elgg_user@elgg_user
elgg_user - 0 likes
You must log in to post replies.Why don't you just upload your logo in _graphics folder and then use _graphics/logo to call it?
I mean use the image tag
follow what cim said its the simplest but effective way through :)
HaPPy ElGGinG :)
Do GooD :)
yeah haha, keep it simple =]
im sorry, its not actually a logo for my website but its a logo for category members, so there's a lot of pictures for each category so i need to put it in table.