First of all I am a new student of learning php. Currently I am writing a piece of code, But getting this error when i compile it.
Notice: Undefined index: ref in D:\xampp\htdocs\uploadthis\includes\config.inc.php on line 8
my file config.inc.php
<?php
require_once ('database/database.inc.php');
$myDb = new Db;
include ('siteconfig.inc.php');
require_once ('controls.inc.php');
if(isset($_COOKIE["usReferrer"])){
}else{
setcookie("usReferrer",limpiar($_GET["ref"]),time()+7776000);
}
?>
I hope you Guys can tell me how can i get off from this error.