$Query = mysql_query ....

if($Query ){
header ("location : Sayfa1.php");
}