PHP Redirect not workig

#1

Hi can anyone help, i have a Php script that processes some form data and sends the user back to that same form to continue, the Php redirect works fine on my local mamp install but doesn’t when uploaded to 000

the code is as follows

<?php
$round=$_REQUEST['round'];
$pitch=$_REQUEST['pitch'];
$score1=$_REQUEST['score1'];
$score2=$_REQUEST['score2'];
$match_id=$_REQUEST['id'];
header('Location: rungame.php?round='.$round.'&pitch='.$pitch);
include 'config.php';

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
} 

$sql = "UPDATE matches SET score1=$score1,score2=$score2 WHERE match_id=$match_id";

if (mysqli_query($conn, $sql)) {
    echo "Record updated successfully";
} else {
    echo "Error updating record: " . mysqli_error($conn);
}

mysqli_close($conn);


die()
?>
#2

Is there any error thrown?

#3

nope , if you try one of the buttons on the page that sends data to that script you will see whats happening

https://footballctrl.000webhostapp.com/rungame.php?round=2&pitch=1