Re: How to call image from mySql to php file

From: Date: Thu, 22 Feb 2007 09:28:11 +0000
Subject: Re: How to call image from mySql to php file
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-249214@lists.php.net to get a copy of this message
Kevin Waterson wrote: > This one time, at band camp, "Haydar TUNA" <haydartuna@meb.gov.tr> wrote: > >> Hello, >> Firstly, your image table field should be BLOB field then you create >> a image file (for example image.php). in this file, if your application is >> more secure, you can control the session variables. You get key column of >> your BLOB table (for example id, studentnumber and so on) with session >> variables, GET variables or any way. I always get this column with SESSION >> variables because it is more secure. After this, for get variables you can >> call the image to your main application from image.php file with like the >> following HTML1 code. for session variables you can call the image to your >> main application from image.php file with like the following HTML2 code. > > Here is a little how to about storing images in mysql > > > http://phpro.org/tutorials/Storing-Images-in-MySQL-with-PHP.html While I appreciate this concept and indeed use it myself, it should be noted that the OP was *not* talking about storing the images in the DB itself. He was talking about storing a filename which he then used in his html. Col

« previous php.general (#249214) next »