Jump to content


Photo

What do I need to do to call an image in php?


  • Please log in to reply
2 replies to this topic

#1 11Tami

11Tami
  • Members
  • PipPipPip
  • Advanced Member
  • 329 posts

Posted 28 September 2006 - 04:21 AM

Hi, I have a few scripts that you don't even have to specify that its a web page. You just stick an address in an array that is in a directory and it appears. But when I try to use an image in its place a bunch of code shows on the page instead of a .gif etc. What do you need to call an image with php? Thanks!

#2 mendoz

mendoz
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts

Posted 28 September 2006 - 04:26 AM

I think you need to use html code.

put this inside your php script
echo "<img src="X">;

#3 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 28 September 2006 - 11:40 AM

If the above doesn't work, then post your code.

Regards
Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users