EPS is just text.
Instead of dumping HTML to the screen, dump a header tag telling the browser "hey, this is EPS" and then echo your EPS file to the browser. You'll probably also want to use Content-Disposition to prompt the person to download the file instead of just dump EPS to the screen.
From the header() example in the PHP manual,
header("Content-type: application/postscript");
header("Content-Disposition: attachment; filename=download.eps");
// query your EPS from MySQL into $data
echo $data;