Thanks, but that's not really what I'm after. I've set up a CMS site for a client of mine so all the photos are dynamic and info is pulled from the DB.
I tried to write something similar to what you use to check the variable, but that didn't work ..
if (!(isset($_GET['view']))){
$getthis = "$query_rsFullSize = sprintf(\"SELECT * FROM photos WHERE pid = %s\", $colname_rsFullSize);";
$colname_rsFullSize = "-1";
if (isset($_GET['pid'])) {
$colname_rsFullSize = (get_magic_quotes_gpc()) ? $_GET['pid'] : addslashes($_GET['pid']);
}
} else {
$getthis = "$query_rsFullSize = \"SELECT * FROM photos ORDER BY p_dorder ASC\";";