Please tell me how to upload an audio file in php?
Problem was that audio is a not move in folder and not upload but insert in database was completely working.
if(isset($_POST['audio']))
{
extract($_POST);
$audio=rand().$_FILES['audio']['name'];
$tname=$_FILES['audio']['tmp_name'];
$path='upload/audio/'.$audio;
move_uploaded_file($tname,$path);
$cmd=Insert("insert into post(type,value,date_time)values('audio','$audio',now()) ");
}