There may be more than the ID with the maximum and minimum temperature, so I just choose one:
SELECT (SELECT ID FROM temp ORDER BY temp_hi DESC LIMIT 1) AS max_temp_id, MAX(temp_hi) AS max_temp, (SELECT ID FROM temp ORDER BY temp_lo LIMIT 1) AS min_temp_id, MIN(temp_lo) AS min_temp FROM temp
Check the data to try:
CREATE TABLE IF NOT EXISTS `temp` ( `ID` int(11) NOT NULL, `temp_hi` int(11) NOT NULL, `temp_lo` int(11) NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `temp` (`ID`, `temp_hi`, `temp_lo`) VALUES (0, 72, 38), (1, 56, 33), (2, 67, 28);
Result:

source share