Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

upload images php mysql

$filename = $_FILES['image']['name'];
function uploadFiles($filename){
    $ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
    $filetmp = $_FILES['avatar']['tmp_name'];
  	..........
    ..........
    $target = $path.basename($filename);
    $upload = move_uploaded_file($filetmp,$target);

    if(!$upload){
      	$errors[] = 2;
    } 
}
 
PREVIOUS NEXT
Tagged: #upload #images #php #mysql
ADD COMMENT
Topic
Name
9+1 =