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 > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2008, 03:41 AM
edhan's Avatar
edhan edhan is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Singapore
Posts: 509
edhan RepRank 1
Question Insert image url from database

Hi

Hope someone can input advice as how am I to replace static image url by using the images url from the database instead. How am I to accomplish this task? I am trying to replace the image url for the var imageList and urlList.

Code:
/**
 * Image src URLs
 **/
var imageList = [
				 "http://static.flickr.com/116/268249561_a32393f6ac_s.jpg",
				 "http://static.flickr.com/97/268249177_d0f53c75ae_s.jpg",
				 "http://static.flickr.com/91/268249048_67b9ecb504_s.jpg",
				 "http://static.flickr.com/101/268248936_9cbaffeb08_s.jpg",
				 "http://static.flickr.com/96/268248678_24c0a48e71_s.jpg",
				 "http://static.flickr.com/106/268248583_f781f44205_s.jpg",
				 "http://static.flickr.com/106/268248481_ca3ee38e1e_s.jpg",
				 "http://static.flickr.com/113/268248145_b12fbb7413_s.jpg",
				 "http://static.flickr.com/106/268248063_3aa0e9f801_s.jpg",
				 "http://static.flickr.com/85/268247010_f9e4e0d0a2_s.jpg",
				 "http://static.flickr.com/92/268246360_cd1dc9269e_s.jpg",
				 "http://static.flickr.com/114/268246264_150b9f97a5_s.jpg",
				 "http://static.flickr.com/84/268245733_bdf9efb167_s.jpg",
				 "http://static.flickr.com/86/268245514_0eac3b5e2d_s.jpg",
				 "http://static.flickr.com/96/268245042_76622df01e_s.jpg",
				 "http://static.flickr.com/92/268244677_a45258db84_s.jpg",
				 "http://static.flickr.com/92/268244474_2f3393ee8c_s.jpg",
				 "http://static.flickr.com/105/268244323_e5f0fa4103_s.jpg"
				 ];
var urlList = [
				 "http://static.flickr.com/116/268249561_a32393f6ac_m.jpg",
				 "http://static.flickr.com/97/268249177_d0f53c75ae_m.jpg",
				 "http://static.flickr.com/91/268249048_67b9ecb504_m.jpg",
				 "http://static.flickr.com/101/268248936_9cbaffeb08_m.jpg",
				 "http://static.flickr.com/96/268248678_24c0a48e71_m.jpg",
				 "http://static.flickr.com/106/268248583_f781f44205_m.jpg",
				 "http://static.flickr.com/106/268248481_ca3ee38e1e_m.jpg",
				 "http://static.flickr.com/113/268248145_b12fbb7413_m.jpg",
				 "http://static.flickr.com/106/268248063_3aa0e9f801_m.jpg",
				 "http://static.flickr.com/85/268247010_f9e4e0d0a2_m.jpg",
				 "http://static.flickr.com/92/268246360_cd1dc9269e_m.jpg",
				 "http://static.flickr.com/114/268246264_150b9f97a5_m.jpg",
				 "http://static.flickr.com/84/268245733_bdf9efb167_m.jpg",
				 "http://static.flickr.com/86/268245514_0eac3b5e2d_m.jpg",
				 "http://static.flickr.com/96/268245042_76622df01e_m.jpg",
				 "http://static.flickr.com/92/268244677_a45258db84_m.jpg",
				 "http://static.flickr.com/92/268244474_2f3393ee8c_m.jpg",
				 "http://static.flickr.com/105/268244323_e5f0fa4103_m.jpg"
				 ];

var lastRan = -1;
__________________
Receiving & Giving To Society
Thai Buddha Amulets & Tibetan dZi Beads | Ads Revenue Sharing | Shopping Online
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: image url, mysql database images



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
Check data before insert database edhan Database Discussion Forum 6 11-07-2007 10:43 PM
Web based image database PilotPete Database Discussion Forum 8 02-22-2007 07:48 PM
Image Resizing from Database ackerley1 Web Programming Discussion Forum 12 11-30-2006 02:22 AM
Image Uploads - INSERT works, UPDATE doesn't bodgekaloopie Database Discussion Forum 8 05-24-2005 11:16 AM
insert data into database jilshi Database Discussion Forum 2 04-30-2004 09:24 AM


Search Engine Friendly URLs by vBSEO 3.0.0