make sure na may enctype na multipart ung html form tag mo sir. then pa double check narin tama ung input tag (like: type = file and name = image).. also, i don't think na necessary pa ung addslashes in line 50, since system's temp path na sya so once okay ung file upload then the $image variable shouldn't be empty.