Need expert's help on mysql command for Phpld script

Discussion in 'Directories' started by xc06, Apr 29, 2009.

  1. #1
    I have a free directory with category dump. However it doesn't contain description for most of the categories (thousands of them).

    Could some expert teach me how to use the title of category as the description in mysql command?

    Something like this:

    If "description" is empty, then use "title" as description.

    Thank you very much and green rep ready to give out.
     
    xc06, Apr 29, 2009 IP
  2. ramp5115

    ramp5115 Banned

    Messages:
    123
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    run this query.

    Update [name of category table] set DESCRIPTION = TITLE



    replace the [name of category table] by actual name of category table in you database
     
    ramp5115, Apr 29, 2009 IP
    xc06 likes this.
  3. freelistfool

    freelistfool Peon

    Messages:
    1,801
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #3
    freelistfool, Apr 30, 2009 IP
    xc06 likes this.
  4. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #4
    The second poster got it right.
     
    mikey1090, May 1, 2009 IP
  5. humm

    humm बहादुर बच्चा

    Messages:
    4,346
    Likes Received:
    850
    Best Answers:
    0
    Trophy Points:
    310
    #5
    What's the use of such stuff when it will obviously not benefit.

    Instead of ruining your db and meta, spend some time and have some good descriptions. :)
     
    humm, May 1, 2009 IP
  6. xc06

    xc06 Notable Member

    Messages:
    3,498
    Likes Received:
    332
    Best Answers:
    0
    Trophy Points:
    203
    #6
    problem fixed, don't bother to reply anymore.

    Thread closed.
     
    xc06, May 1, 2009 IP