I have this code in my php file:
$parc = $_GET['cod'];
the cod is a variable that comes from my URL, like: www.teachmenow.com.br?cod=002
but, sometimes the link doesn't have the variable, then I am getting an error:
Undefined index: cod
is there any way to prevent if URL came with variable or not?