Hey, <snip>
Putting the quoted string all on one line as in:
$sql = "insert into images (picnum, image) values
(nextval('images_picnum_seq'),'$loid')";
I think that's how I've got it, it might've just been bad line wrapping. My main problem is with the retrieval of files from the database :/ Thanks anyway :) Chris.