How to display images in PHP?
Posted: Fri Dec 17, 2010 9:11 am
Hello All,
I wan to display images from the MySQL. Let me me explain you hows my site structure is. My site has a login page where all the users login. The same page has the Registeration Page where the New Users can register themself. NOw I am done with Login, Registration and displaying info like Username, there First and Last Name after they login in the members page.
In the members page I have a Link which says "Edit Profile" and when the users click on this link they can update there information like Email Id, Phone, Location, etc. Now here I want to incorporate the feature of "Upload Profile Pic" so that it can be displayed on there Members Page when they login.
My Database now has no fileds to capture the image information, but when I googled I found that I need to have two main field that is 1. Image Name (where i will store the Imagename) and 2. Image (where I will store the actuall Image) I found and checked we need to use BLOB.
I kindly request to all to help me how to upload and display images in my members page. Let me now if still any other information is needed.
Regards,
Jagannath
I wan to display images from the MySQL. Let me me explain you hows my site structure is. My site has a login page where all the users login. The same page has the Registeration Page where the New Users can register themself. NOw I am done with Login, Registration and displaying info like Username, there First and Last Name after they login in the members page.
In the members page I have a Link which says "Edit Profile" and when the users click on this link they can update there information like Email Id, Phone, Location, etc. Now here I want to incorporate the feature of "Upload Profile Pic" so that it can be displayed on there Members Page when they login.
My Database now has no fileds to capture the image information, but when I googled I found that I need to have two main field that is 1. Image Name (where i will store the Imagename) and 2. Image (where I will store the actuall Image) I found and checked we need to use BLOB.
I kindly request to all to help me how to upload and display images in my members page. Let me now if still any other information is needed.
Regards,
Jagannath