http://www.hostname.com/Serial.php?123456
hmmm.... this particular construct... 123456... doesn't follow query string contruct.. now if you have this like this
http://www.hostname.com/Serial.php?serial=123456
then you can get 123456 by
$_GET["serial"] in your php code...
and from there... create your sql statement. :D
then pass it to something like
mysql_query($strQUERY); something like that.. I havn't used mysql routines... I work mostly using pgsql.. by I should say they are somewhat the same :D