I'm working on a php blog , i created a database and it has several fields,
i performed an sql command retrieving the id , performed a $query then a mysqli_fetch_array
on the $query i retrieved the id and stored it ina variable as follows `$pid=$row['id'];
so that the link would be set as www.somesite.com/index.php?pid=1 or pid =2
i attempted to GET the pid as follows
if(!_GET['pid']){
//do something
}else
$pageid= $_GET['pid'];
i keep getting this error ->"Undefined index: pid"
isn't the $_GET array an associative array, why can't i acess it??