我无法提醒javascript并调用标题位置背靠背如何做到这一点

$sql="UPDATE `youtube` SET `yid`='$id',`ypage`='$page',`yframe`='$yvideo',`ytitle`='$title',`ydate`='$date' WHERE yid='$id'";
    $result=sqlquery($sql);

    if($result)

    {
        echo "<script>alert('your video has been uploaded');</script>";
        header('location:videoupload.php');
        exit;
    }

That is not possible if you are using header() as the redirect with JS Alert.. Because the headers are already sent and you won't see the alertbox. Instead this will work.

echo "<script>alert('your video has been uploaded');</script>";
//header('location:videoupload.php');
echo "<script>window.location.href='videoupload.php'</script>";
exit;

But a Javascript redirect is not at all recommended !