Page 1 of 1

Inserting image

Posted: Wed Apr 27, 2011 10:00 am
by terry1989
Hi there does anyone know how to insert image using php.

Re: Inserting image

Posted: Wed Apr 27, 2011 10:13 am
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.

Re: Inserting image

Posted: Wed Apr 27, 2011 1:10 pm
by terry1989
basically im developing a php website and I want to insert an image to display is that clear?

Re: Inserting image

Posted: Wed Apr 27, 2011 1:34 pm
by McInfo
What do you mean by "insert"? Where is the image now, and where do you want it to go?

Re: Inserting image

Posted: Wed Apr 27, 2011 3:26 pm
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.

Re: Inserting image

Posted: Sun May 08, 2011 2:33 am
by Benjamin
:arrow: Moved to PHP - Code