// get the most current show in case one isn't passed $connection = mysql_connect("localhost", "rgr_darkuni", "mufassa69") or die("Invalid user or password"); $query="SELECT libsynid from theShows where id=$id"; $result = mysql_db_query("rgr_rgr", $query, $connection) or die("error in query"); while($myrow = mysql_fetch_array($result)) { $libsynid=$myrow["libsynid"]; } ?>