I have this line of code:
$prelimResult = mysql_query("SELECT MAX(volume),MAX(issue),MAX(year) FROM articles",$db);
That doesn't work quite how I want it to. I want it to find the largest volume, then the largest issue within that volume but instead this finds the largest volume and largest issue. So say the latest issue is Volume 2, Issue 1, but there exists a Volume 1, Issue 2, it will think the latest issue is Volume 2, Issue 2 which doesn't exist.
I know I need to make some sort of nested query, but I don't know the proper syntax?
$prelimResult = mysql_query("SELECT MAX(volume),MAX(issue),MAX(year) FROM articles",$db);
That doesn't work quite how I want it to. I want it to find the largest volume, then the largest issue within that volume but instead this finds the largest volume and largest issue. So say the latest issue is Volume 2, Issue 1, but there exists a Volume 1, Issue 2, it will think the latest issue is Volume 2, Issue 2 which doesn't exist.
I know I need to make some sort of nested query, but I don't know the proper syntax?