iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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!

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2007, 05:45 AM
edhan's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 716
edhan RepRank 3edhan RepRank 3edhan RepRank 3
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.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum

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 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 78 11-08-2009 11:05 PM
Help! thumbnail function not working properly Jerry Web Programming Discussion Forum 4 07-22-2005 07:49 PM
Search engines spiders not indexing images for images search jay-jay Search Engine Optimization Forum 2 01-13-2005 06:20 PM
Thumbnail business photos wanted Mondesir Graphics & Design Discussion Forum 2 07-11-2004 01:32 PM
Thumbnail Previews on MSN.com BruceMan MSN Search Discussion Forum 1 11-05-2003 08:56 PM


All times are GMT -4. The time now is 02:40 AM.



Search Engine Optimization by vBSEO 3.3.0