You are here: newbie with multiple images upload question « PHP Programming Language « IT news, forums, messages
newbie with multiple images upload question

Posted by angelduran2004 on 12/27/06 22:49

hi i have this code
foreach ($_FILES["images"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["images"]["tmp_name"][$key];
$name = $_FILES["images"]["name"][$key];
move_uploaded_file($tmp_name, "images/$name");
}
}

and i wish to add it a uniqid to every file uploaded leaving intact
it's original name as well. and i would also need to get the file name
and add it to my database. just wondering how to do that if any one can
help.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация