Can any one tell me how to access a query string and how to test if it exists?
I know about using $_SERVER['QUERY_STRING'] but I want to just get the value at the end of the query string
eg - page.php?id=2 - just want the "2".
I am also having problems checking to see if the querystring exists in the first place. This is the code I have so far. If I manually append the query string in the address bar, then it works fine, jumps to the "else" statement etc. But without it it just fails.
$memid = $_SERVER['QUERY_STRING'];
printf("no query string");