Results 1 to 6 of 6

Thread: Copy daba from column to another under MySQL

  1. Copy daba from column to another under MySQL

    I need a MySQL request to copy this data :

    From table : e107_user
    To table : ibf_members

    Copy column = user_id
    to column = id

    Where

    colum user_name in table e107_user = colum name in table ibf_members

    Thanx

  2. Copy daba from column to another under MySQL

    It's okey I've found a way

  3. Join Date
    Aug 2004
    Posts
    781

    Copy daba from column to another under MySQL

    Didn't even give me a chance to answer

  4. Copy daba from column to another under MySQL

    There was a problem with the e107 integration to IBF !

    The script copies accounts but not their IDs so a user has a different ID on e107 than the one on IBF. Users were getting problems opening their settings control panel from e107 login menu and were redirected into other members profiles !

    So I made this SQL request :

    Code:
    UPDATE e107_user SET e107_user.user_id = ibf_members.id WHERE e107_user.user_name = ibf_members.name
    I had the following error : Unknown table "ibf_members"

    The solution was to do the request this way :

    Code:
    UPDATE ibf_members, e107_user SET e107_user.user_id = ibf_members.id WHERE e107_user.user_name = ibf_members.name
    I suggest you copy this into e107-IBF integration forum in case somebody has the same problem as I did !

  5. Join Date
    Aug 2004
    Posts
    781

    Copy daba from column to another under MySQL

    The redirection, login, ect.. are all username based though. The script doesn't focus at all on user ids, it is username based (this is the third or fourth integration I have done, I learned by the second that it was easier to just base it off of usernames).

    I don't understand where you were having problems?

  6. Copy daba from column to another under MySQL

    When a user was clicking on his "Profile" from e107, he was redirected using a different ID...

    Let's say member "Smith" clicks "profile" from e107 login menu... when he get's redirected into invision profile, he's seing member "Gabrielle" !

    if users have different ID's in e107 and IBF the profile redirection is done wrong, and I prefer to keep the both databases synchro,ized with same ID's... Just to have it clean and nice

Posting Permissions

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