Here are two seperate MySQL calls, can I possibly consolidate these into one?
// perform SQL query. Get the max for the issue_id, this so we know what numbers we can work with.
$query1=MYSQL_QUERY("SELECT max(issue_id) as max_id FROM comic_issues WHERE display_date <= curdate()"
;
$getvar=MYSQL_FETCH_ARRAY($query1);
$max_issue_id=$getvar["max_id"];
// perform SQL query. Look up the max_issue_id we just got, and grab all of its info.
$query = "SELECT issue_id, type, title, display_date, image_filename
FROM comic_issues
WHERE issue_id = $max_issue_id";
$result = mysql_query($query);
// perform SQL query. Get the max for the issue_id, this so we know what numbers we can work with.
$query1=MYSQL_QUERY("SELECT max(issue_id) as max_id FROM comic_issues WHERE display_date <= curdate()"
$getvar=MYSQL_FETCH_ARRAY($query1);
$max_issue_id=$getvar["max_id"];
// perform SQL query. Look up the max_issue_id we just got, and grab all of its info.
$query = "SELECT issue_id, type, title, display_date, image_filename
FROM comic_issues
WHERE issue_id = $max_issue_id";
$result = mysql_query($query);