Jump to content

Location of pictures (thickbox)


ph0enix993

Recommended Posts

I have a SQL query which selects data from products and writes them in XML file. But the problem I have is with writing image location path. 

 

Sample location:

 http://www.website.com/2520-thickbox_default/computer-lenovo-thinkcentre-m93p-sff.jpg

 

Numbers before thickbox text seems to be generated randomly and I can't use something like this:

replace(concat('http://', ifnull(conf.value,'domain/'),'/',*random numbers*, '-' 'thickbox_default', '/', pl.name, '.html'),' ','-') AS 'image_link',

What are those numbers? The product ID and that number are not the same so I don't know how to generate them with SQL query. Anyone knows where those numbers come from?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...