Inserting image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
terry1989
Forum Newbie
Posts: 5
Joined: Wed Apr 27, 2011 7:15 am

Inserting image

Post by terry1989 »

Hi there does anyone know how to insert image using php.
User avatar
CrowderSoup
Forum Newbie
Posts: 18
Joined: Thu Apr 21, 2011 2:56 pm
Location: Murray, UT

Re: Inserting image

Post by CrowderSoup »

It really depends a lot on what you mean by:
terry1989 wrote:Hi there does anyone know how to insert image using php.
Do you mean that you want to pull it from the database, or you just want to use conditional statements to decide what image to display? Or a myriad of other options. More info will help us answer your question, without any further clarification there isn't much we can do.
terry1989
Forum Newbie
Posts: 5
Joined: Wed Apr 27, 2011 7:15 am

Re: Inserting image

Post by terry1989 »

basically im developing a php website and I want to insert an image to display is that clear?
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Inserting image

Post by McInfo »

What do you mean by "insert"? Where is the image now, and where do you want it to go?
User avatar
CrowderSoup
Forum Newbie
Posts: 18
Joined: Thu Apr 21, 2011 2:56 pm
Location: Murray, UT

Re: Inserting image

Post by CrowderSoup »

terry1989 wrote:basically im developing a php website and I want to insert an image to display is that clear?
Not really... "insert" can mean a lot of things. If you just want to put an image on a page using HTML use the IMG tag:

Code: Select all

<img src="yourimage.jpg" />
If you want to do something else then we're going to need a lot more specific info.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Inserting image

Post by Benjamin »

:arrow: Moved to PHP - Code
Post Reply