Below is partial code as to a function im using, i just cant seem to assign $image_id as the images name before its saved on to the server??
PHP Code:if($_FILES['imagefile']['name'] != "")
{
$target_path = "../images/games/";
$target_path = $target_path . basename( $_FILES['imagefile']['name']);
$image_id = getImageID();
if(move_uploaded_file($_FILES['imagefile']['tmp_name'], $target_path))
{
$_FILES['imagefile']['name'] = $image_id;
}
}


LinkBack URL
About LinkBacks








Reply With Quote


