please i need help. I'm not perfect on this so I followed a tutorial. and i get a "Parse error: syntax error, unexpected T_VARIABLE" on this line:
function updatephto($id,$tmpName,$ext){
if(move_uploaded_file($tmpName,"photos/userimages/".$id."."$ext) && mysqli_query("UPDATE `register` SET `photo`='".$ext."' WHERE `id`=".$id));
}
but in the tutorial, there was no error. Please help me out