Results 1 to 8 of 8

Thread: insert tabel in mysql

  1. #1
    Join Date
    Feb 2005
    Location
    Antwerp, Belgium
    Posts
    118

    Default insert tabel in mysql

    Hi,

    im not an expert on mysql,...

    but here is my problem

    i want an extra table in idx_links ( thumbshot )

    i have a map with all the thumbshots of the sites listed in my directory.
    (www.mysite.come/thumbs )

    the names of the jpg's are all idnumber.jpg

    i want an extra table in my id_links with the names of these pics.
    so in id number 12345 must be a table with 12345.jpg

    is it possible to do this automaticly? because typing 9500 names of pics


    from there i could do some extra stuff with the thumbshots.

    greetings peter

  2. #2
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    I maybe missing something but this is jsut your ID column with .jpg put on the end, What do you need this column for exactly?
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  3. #3
    Join Date
    Feb 2005
    Location
    Antwerp, Belgium
    Posts
    118

    Default

    yes indeed... i want an extra colum with the jpeg names ( not the files itself, but idnumber.jpeg on the exact row of that idnumber )
    but i don't know how to do it or if it is even possible.

    the files (pics) itself must stay in a specific map. otherwise the database becomes to big.

    i think i can do some extra stuff with my pics then when they are in the database. ( search pics only, pic gallery with links to detail page, browse only with pics in the categories and even rewrite the names of the pics to namesite.jpg ( search engines !....etc )

    But it's just an idea i have. maybe there are easyer ways to do some nice things with the thumbs.

    greetings peter.

  4. #4
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Good ideas, I was thinking about doing what you have with the gallery, I planned to use the title tag on the images as the <%title%>, but as you say the ID.jpg format is not the most SEO friendly. It would need a php script to read the database titles, then load corresponding image ID, rename it to the tile, then write to the DB... It can be done, although with my limited skills a fairly big job.

    Ps. what gallery program did you use for the thumbs?

    matt
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  5. #5
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Ok i made some improvments :

    1) You can generate the list of IDS for all images added in the last Day/Week/Month. Allowing smaller updates to the thumbs without having to do the whole lot!

    2) Im looking into creating the php script to make the images SEO friendly - it will help you on google images AND on the main listing as you will have relevantly named images.

    I have point (1) done so send me an email if you want that. Im working on point (2) but Im pretty busy at the moment so dont expect it quickly!!!!
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  6. #6
    Join Date
    Feb 2005
    Location
    Antwerp, Belgium
    Posts
    118

    Default

    thx ! send you a mail.

  7. #7
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    OK I did all of that, but its imprtant to note if a user modifies the title of the listing the image name will no longer relate to it, and cause a broken image... not a big issue as it will be sorted on the next thumbs update you do, especially if you have a "awaiting image" notice which will display instead

    Email me if you want it.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  8. #8
    Join Date
    Feb 2005
    Location
    Antwerp, Belgium
    Posts
    118

    Default

    You are God !

    this works perfect. it took me 5 seconds to rename the 9500 pics

    thx again

    peter
    audiomastermind

    Now google can come with there army of image bots.

Similar Threads

  1. Replies: 3
    Last Post: 08-09-2005, 02:03 AM
  2. Importing from GT Links SQL
    By craven in forum v5.x
    Replies: 5
    Last Post: 09-16-2003, 11:50 AM
  3. Mysql import of e-mails ?
    By lewisw in forum v3.2
    Replies: 0
    Last Post: 08-20-2003, 08:10 PM
  4. Do you have to run MySQL 4x for IndexU 3.1?
    By Frisk151 in forum Pre-Sales Questions
    Replies: 3
    Last Post: 08-04-2003, 08:50 PM
  5. remotely hosted mySQL
    By miletic in forum Pre-Sales Questions
    Replies: 1
    Last Post: 10-21-2002, 12:07 PM

Posting Permissions

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