Re: Displaying user data and picture

From: Date: Thu, 06 Aug 2009 13:45:30 +0000
Subject: Re: Displaying user data and picture
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-296379@lists.php.net to get a copy of this message
hi there, u want help? break down ur question to the point, none is going to downlod unknown zips searching for the spot. its fun to help, but its for free, so make it easier for us to help u u r lucky that i'm sick at the moment and a bit bored, but anyway i'm not downloading a zip. however, the most common error for newbies on that issue is, that thex don't pay attention to the fact that a browser treats a picture as a separate file to download. u can store pictures in a databas, and a blob field in mysql is the right thing, however u have to have a little php scrip, however with a .png extention to get the browser displaying the picture. u have to tell apache that a .png (or jpeg, gif etc) extention is to be parsed by the php interpreter where u then can place ur database retrival of the picture. in that script u then have to make shure ur are sending the right header out. to give u all the details is worth some time and time is money. the amount of documentation to figure out the details is not small. start with some w3c and rfc standard to get the clue. regards ralph ralph_deffke@yahoo.de "nashrul" <anas_aviv@yahoo.com> wrote in message news:24839092.post@talk.nabble.com... > > I am new to php... > I try to make a php page that displays form submitted data and image. There > are 3 php files, > tampil_tamu_admin.php, edit_tamu.php and display_img.php. > The user lists are displayed in the tampil_tamu_admin.php, and when the user > clicks one record, it shows edit page (edit_tamu.php) that display user data > and picture. (edit_tamu.php file includes img tag that calls display_img.php > with user id) > The problem is the user data is displayed but the image is not displayed... > How can I display this image ? > > The codes are attached > > Thanks http://www.nabble.com/file/p24839092/guest-book.rar > guest-book.rar > http://www.nabble.com/file/p24839092/guest-book.zip > guest-book.zip > -- > View this message in context: http://www.nabble.com/Displaying-user-data-and-picture-tp24839092p24839092.html > Sent from the PHP - General mailing list archive at Nabble.com. >

« previous php.general (#296379) next »