Thanks for the correction, I did have to add a small function for it to work:
function sql_safe($s)
{
if (get_magic_quotes_gpc())
$s = stripslashes($s);
return mysql_real_escape_string($s);
}
$data = file_get_contents($image_path);
$data = mysql_real_escape_string($data);
that took care of the slashes in the path and everything's working perfectly now.
I think i'll just use this script to populate a thumbnail database (each image file < 20 kb) and stick with name\location as dagon suggested. But as you can probably see, I'm a n00bie at web design, so that's why i'm trying to experiment as many different methods as possible, lolz.
Thanks again for help!
Derick