Treasure Coast -Local News & Local Events
Home » Enter Sports Event

Enter Sports Event

Cyndi




connect_error) {
die(“Connection failed: ” . $conn->connect_error);
}

$sql = “INSERT INTO schedule(ID,Date,Day, Station, `Station URL`, Sport,Time)
SELECT MAX(ID) + 1 ,'”.$event_date.”‘,'”.$event_day.”‘ ,'”.$event_station.”‘ ,'”.$event_URL.”‘ ,'”.$event_sport.”‘,'”.$event_time.”‘ FROM schedule”;

if ($conn->query($sql) === TRUE) {
echo “New event have created successfully”;
} else {
echo “Error: ” . $sql . “
” . $conn->error;
}

$conn->close();

}

function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>

” method=”post” class=”basic-grey”>

Add new Event




%d bloggers like this: