I am making an affiliate program where I count a number of clicks based on this link fridgeblasteraffiliate.freeiz.com/affiliate/?numberherebasedonid but I have this
<?php
$conn = mysqli_connect("redacted", "redacted", "redacted",
"redacted");
if (!$conn) {
die("Connection failed: ".mysqli_connect_error());
}
session_start();
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$sql = "SELECT clicks FROM affiliate WHERE ID='$ID'";
$add = 1;
$ID = strpos($url, needle)
?>
but as you can see I can't figure out how to call the number in the url to count the clicks