query($sql); while($row=$db->fetch_array($rs)){ $http=$row['http']; $listfile_destdir=$row['listfile_destdir']; } $http=$http."/".$listfile_destdir; //echo $http; header("Location:$http"); ?>