Still can't get it to work. Below is what I have in my code including the database insert. I've also tried uncommenting the $data line.
If I uncomment the $data line, when I try to display the image, it displays the words 'Array'. If I comment out the $data line it displays the image from the database, but it never was formatted. I created the fmogrify in the same bin directory as mogrify & granted the same permissions (755).
Chris, once again thanks for your help on this!
Jason
if(isset($submit)) {
MYSQL_CONNECT("localhost","nobody","");
mysql_select_db("db");
exec("cat \"$submit\" | fmogrify -density 72x72 -geometry 200x200! - 2>/dev/null", $data);
//$data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));
$result=MYSQL_QUERY("INSERT INTO employees (name,title,bin_data,filename,filesize,filetype) "."VALUES ('$name','$title','$data','$form_data_name','$form_data_size','$form_data_type')");
$id= mysql_insert_id();
?>