Help! This is driving me crazy...
I'm trying to read a BLOB from a db and display it in a browser, like
so:
$query="SELECT blob from table where blob_id=9";
$result=mysql_query($query);
$blob=mysql_fetch_assoc($result);
Now when I do
print_r (array_values($blob));
I get
Array ( [0] => ÿØÿàJFIF...
which is as it should be. Would this not tell me I can also do
print ("$blob[0]");
If yes (since I get [0] with array_values), then why do I get
Notice: Undefined offset: 0
And, of course, how do I access $blob to get at the data? For
imagecreatefromstring for example...
Thanks a lot,
Caro