www.webdeveloper.com
Results 1 to 4 of 4

Thread: Query String to isolate all iamges and their url?

  1. #1
    Join Date
    Apr 2011
    Posts
    11

    Query String to isolate all iamges and their url?

    I am not much of a SQL person, I can create a database, optimize it, drop and ad tables. But my boss would like me to spit out a list of all the images on our site and the corresponding urls. I am sure this can be done with a query string but I have no idea how.

    Can anyone give me a hand with this?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,145
    What kind of data would you be searching? Is there an actual DB table where you store the images or the image names/directories, or what?
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Apr 2011
    Posts
    11
    I am searching for all the images within a given section "products" and their URLs to the images in the folder on the ftp. I just need a list. They are in one large database that is controlled by MODX. I have almost all the pages under a products folder, in modx.

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,145
    I'm not sure there's a way to do it purely in SQL. I might create a PHP script to query the appropriate DB column(s) I don't know MODX, so don't know which table(s)/column(s) have the data), then use PHP's preg_match_all() function to locate the image info.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles