php add get parameter to url code example
Example 1: php add get to link
$url .= $url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'category=action';
Example 2: add get parameter to url in php include
$_GET['id']=$somevar;
include('myFile.php');