WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2007, 04:45 AM
edhan's Avatar
edhan edhan is online now
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Singapore
Posts: 495
edhan RepRank 1
Question Thumbnail images

Hi

I am trying to get the rotating images to show the thumbnail, if using just one source of thumbnail URL, no problem with that.

But when I have 2 or more different source of thumbnail URL, it does not work. Here is the code:

Code:
  preg_match('(src=[\"a-z:\/\.\?=\-0-9A-Z_\"]*)',$code,$results);
  $src = substr($results[0],5,strlen($result[0])-1);

  preg_match('(file=[\"a-z:\/\.\?=\-0-9A-Z_\"]*)',$code,$results);
  $file = substr($results[0],5,strlen($result[0])-1);

print "<thumbnail_url>";
print "$src";
print "/default.jpg";
print "</thumbnail_url>\n";
The first thumbnail source is $src and the second is $file. Without using the $file, I have no problem displaying the thumbnail.

I tried to repeat the print $file for the second thumbnail, it turns out blank. Anyone can let me know if there is a way to detect if it is $src or $file so it can display the thumbnail ?

I am still learning database. Sorry if this question is a little silly as my knowledge is very limited.

Thank you.
__________________
Receiving & Giving To Society
Thai Buddha Amulets & Tibetan dZi Beads | Ads Revenue Sharing | Article Directory
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Tags: images, thumbnail



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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invoiced from Getty Images for Unlawful Use of Images? danners02 Graphics & Design Discussion Forum 35 Yesterday 10:00 AM
Help! thumbnail function not working properly Jerry Web Programming Discussion Forum 4 07-22-2005 06:49 PM
Search engines spiders not indexing images for images search jay-jay Search Engine Optimization Forum 2 01-13-2005 05:20 PM
Thumbnail business photos wanted Mondesir Graphics & Design Discussion Forum 2 07-11-2004 12:32 PM
Thumbnail Previews on MSN.com BruceMan MSN Search Discussion Forum 1 11-05-2003 07:56 PM


Search Engine Friendly URLs by vBSEO 3.0.0