# lookup.php # take user to requested story and log access info require "fdset.inc"; extract($_REQUEST, EXTR_REFS|EXTR_SKIP); $artseq = $n; # get value from URL article argument $opcode = "dc"; # newswire display click-through require FILEDIR.'common_code.inc'; require FILEDIR.'setup.inc'; $query = "select url from newswire where seq='$artseq'"; if (!$mresult=mysql_query($query, $mlink)) errlog('cua',$artseq); while ($s = mysql_fetch_array($mresult)) { if ($rowcount) { print "error: more than one newswire record found " ## . "for '$artseq'\n"; ## exit; } $rowcount++; $url = $s[0]; } ?>