GetDotted Domains

Viewing Thread:
"Displaying jpg pic with PHP"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sun 08/02/09 at 22:55
Regular
"wheres the Any Key?"
Posts: 161
hiya all

i have a webpage that displays a players profile when his name is selected from a drop down menu, the profile info is retrieved from a Database table and displayed, i`d like to display the players picture as well, but not sure on how to do this.

At present i have the pics stored in a folder on the webserver called profilepics.

Could anyone help me with the code to select the correct picture from that folder when retieving the players profile from the database?

Or should i be storing the pic in the database? (if so even more help is needed.)

Any ideas or help would gr8.

Many thx in advance.
Mon 09/02/09 at 14:03
Staff Moderator
"Aargh! Broken..."
Posts: 1,408
The easiest way would be to store the path to the profile image in the the database alongside the other profile info. No need to store the image in the database (inefficient). If you are allowing users to upload their profile image then just store the image path when they do that.
Sun 08/02/09 at 22:55
Regular
"wheres the Any Key?"
Posts: 161
hiya all

i have a webpage that displays a players profile when his name is selected from a drop down menu, the profile info is retrieved from a Database table and displayed, i`d like to display the players picture as well, but not sure on how to do this.

At present i have the pics stored in a folder on the webserver called profilepics.

Could anyone help me with the code to select the correct picture from that folder when retieving the players profile from the database?

Or should i be storing the pic in the database? (if so even more help is needed.)

Any ideas or help would gr8.

Many thx in advance.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Unrivalled services
Freeola has to be one of, if not the best, ISP around as the services they offer seem unrivalled.
Thanks!
Thank you for dealing with this so promptly it's nice having a service provider that offers a good service, rare to find nowadays.

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.