Current location: Hot Scripts Forums » Programming Languages » PHP » Displaying images from a XML feed


Displaying images from a XML feed

Reply
  #1 (permalink)  
Old 07-30-04, 03:42 PM
101 101 is offline
New Member
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Displaying images from a XML feed

What I need is simple: The script get a name from XML and depending on that name it displays the matching image. I'm new to PHP so before I go to the manual I'd like to see if some of you can give me some hints about what I need. Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 07-30-04, 10:10 PM
kvnband kvnband is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 242
Thanks: 0
Thanked 0 Times in 0 Posts
Well, I don't know XML, but if it's like

$name = Joe

then in PHP file, just do
PHP Code:

<img src=http://yoursite.com/<? echo $name?>.jpg>
Or something like that
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache/PHP not displaying images mdhall PHP 4 01-28-06 01:01 PM
JavaScript applet displaying XML data perleo JavaScript 3 07-14-04 05:43 AM
Displaying default images galesjam PHP 4 01-16-04 04:23 PM
Displaying images from MYSQL Soulidified PHP 1 07-22-03 06:01 PM
Displaying images! boskyvora PHP 4 06-30-03 07:53 AM


All times are GMT -5. The time now is 04:15 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.