Author Topic: Copy of username and eMail to be sent to another table  (Read 33611 times)

0 Members and 1 Guest are viewing this topic.

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Copy of username and eMail to be sent to another table
« on: April 01, 2005, 07:37:56 PM »
Hi;

I am using a mailing list application.
And I want the username and email of any user registering in my site to be added in the mailing list database.
So it’s like another copy of the username and email besides the original one in 4images database.

My mailing list tables are in another database than the 4images tables; under the same host.
For the time being; I exported all usernames and emails of my 4images users and successfully imported them in the mailing list table.

Did I explain my idea?

Any help would be really appreciated.

Thanks.

p.S. this is the mailing list I am using:
http://www.listmessenger.com 

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Copy of username and eMail to be sent to another table
« Reply #1 on: April 01, 2005, 07:52:55 PM »
ok.
here we go

Quote
INSERT INTO YOUR_MAILING_DATABASE.YOUR_MAILING_TABLE (your_username_field, your_email_field)
SELECT user_name, user_email
FROM YOUR_4IMAGES_DATABASE.YOUR_PREFIX_users

OR

did you mean, when someone register in your 4images gallery should be automaticly added to you maillist database ?
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: Copy of username and eMail to be sent to another table
« Reply #2 on: April 02, 2005, 03:21:03 PM »
Quote
OR

did you mean, when someone register in your 4images gallery should be automaticly added to you maillist database ?

hi Nicky;
Thanks for teh reply  :)

And yes; I ment when someone register in my 4images gallery should be automaticly added to you maillist database.

You may need this info:
mailing list db name: lqtacom_email
mailing list user table name: lmuser_list
mailing list username field: user_name
mailing list user email field: user_address

Thanks :)

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: Copy of username and eMail to be sent to another table
« Reply #3 on: April 05, 2005, 01:24:31 PM »
any help?
 :roll:

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Copy of username and eMail to be sent to another table
« Reply #4 on: April 11, 2005, 04:53:18 PM »
oups, sorry, i forgot this thread..

will look on it..

send me mysql dump of your mailling list database.. w.o. content
email -> 4images at nicky.net
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: Copy of username and eMail to be sent to another table
« Reply #5 on: April 12, 2005, 07:27:03 AM »
Hi Nicky;

Will a fresh .sql file of the mailing database work with you?
or it has to be the existing one?


Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Copy of username and eMail to be sent to another table
« Reply #6 on: April 12, 2005, 02:53:38 PM »
mysql dump of your mailling list database.. w.o. content

I think that sums it up.  The database structure without content (data)

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: Copy of username and eMail to be sent to another table
« Reply #7 on: April 12, 2005, 05:33:53 PM »
ok here you go ..
This is the sql file ..

http://www.lqta.com/listmessenger/backups/backup.1113320036.1011111.lme.zip

is that what you need?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Copy of username and eMail to be sent to another table
« Reply #8 on: April 12, 2005, 07:38:47 PM »
huuuuuuuuuuuuuuuuuuuh....

what's this ---> backup.1113320036.1011111.lme ?

what should that be inside of the file

Code: [Select]
[version]1.0.0[/version]
[user_groups]
Mg== MA== MA== bHF0YSB1c2Vycw==
Mw== MA== MA== VGVzdA==
[/user_groups]


i need a mysql dump. AS SQL file
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: Copy of username and eMail to be sent to another table
« Reply #9 on: April 13, 2005, 07:16:35 AM »
Opss ..
Sorry .. that was from teh application itself  :oops: opened only by the application .. how could I miss that ..

this is the SQL Dump (Structure):

Code: [Select]
-- phpMyAdmin SQL Dump
-- version 2.6.1-pl2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 13, 2005 at 08:16 AM
-- Server version: 4.0.22
-- PHP Version: 4.3.10
--
-- Database: `lqtacom_email`
--

-- --------------------------------------------------------

--
-- Table structure for table `lmemail_messages`
--

CREATE TABLE `lmemail_messages` (
  `message_id` int(11) NOT NULL auto_increment,
  `template_id` int(11) NOT NULL default '0',
  `date` bigint(64) NOT NULL default '0',
  `title` varchar(255) NOT NULL default '',
  `from` varchar(255) NOT NULL default '',
  `fromemail` varchar(255) NOT NULL default '',
  `replyemail` varchar(255) NOT NULL default '',
  `erroremail` varchar(255) NOT NULL default '',
  `priority` int(1) NOT NULL default '0',
  `subject` varchar(255) NOT NULL default '',
  `text` longtext NOT NULL,
  `html` longtext NOT NULL,
  PRIMARY KEY  (`message_id`),
  KEY `date` (`date`),
  KEY `title` (`title`)
) TYPE=MyISAM AUTO_INCREMENT=3 ;

-- --------------------------------------------------------

--
-- Table structure for table `lmemail_queues`
--

CREATE TABLE `lmemail_queues` (
  `queue_id` int(11) NOT NULL auto_increment,
  `date` int(11) NOT NULL default '0',
  `touch` int(11) NOT NULL default '0',
  `target` varchar(255) NOT NULL default '',
  `message_id` int(11) NOT NULL default '0',
  `is_on` int(11) NOT NULL default '0',
  `total` int(11) NOT NULL default '0',
  `status` varchar(25) NOT NULL default '',
  PRIMARY KEY  (`queue_id`),
  KEY `date` (`date`)
) TYPE=MyISAM AUTO_INCREMENT=6 ;

-- --------------------------------------------------------

--
-- Table structure for table `lmemail_sending`
--

CREATE TABLE `lmemail_sending` (
  `email_id` int(11) NOT NULL auto_increment,
  `queue_id` int(11) NOT NULL default '0',
  `name` varchar(125) NOT NULL default '',
  `address` varchar(125) NOT NULL default '',
  `sent` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`email_id`)
) TYPE=MyISAM AUTO_INCREMENT=1071 ;

-- --------------------------------------------------------

--
-- Table structure for table `lmemail_templates`
--

CREATE TABLE `lmemail_templates` (
  `template_id` int(10) NOT NULL auto_increment,
  `template_name` varchar(255) NOT NULL default '',
  `template_description` text,
  `template_html` longtext NOT NULL,
  PRIMARY KEY  (`template_id`)
) TYPE=MyISAM AUTO_INCREMENT=3 ;

-- --------------------------------------------------------

--
-- Table structure for table `lmpreferences`
--

CREATE TABLE `lmpreferences` (
  `preference_id` int(10) NOT NULL auto_increment,
  `order_num` smallint(2) NOT NULL default '0',
  `is_required` int(2) NOT NULL default '0',
  `preference_name` varchar(150) NOT NULL default '',
  `preference_value` text NOT NULL,
  `type` varchar(25) NOT NULL default 'text',
  `visible` tinyint(2) NOT NULL default '1',
  `helptext` mediumtext,
  `section` varchar(25) NOT NULL default 'preferences',
  PRIMARY KEY  (`preference_id`),
  UNIQUE KEY `preference_id` (`preference_id`)
) TYPE=MyISAM AUTO_INCREMENT=47 ;

-- --------------------------------------------------------

--
-- Table structure for table `lmuser_groups`
--

CREATE TABLE `lmuser_groups` (
  `group_id` int(10) NOT NULL auto_increment,
  `group_type` int(10) NOT NULL default '0',
  `belongs_to` int(10) default NULL,
  `group_name` varchar(30) NOT NULL default '',
  PRIMARY KEY  (`group_id`),
  UNIQUE KEY `group_id` (`group_id`)
) TYPE=MyISAM AUTO_INCREMENT=4 ;

-- --------------------------------------------------------

--
-- Table structure for table `lmuser_list`
--

CREATE TABLE `lmuser_list` (
  `user_id` int(10) NOT NULL auto_increment,
  `group_id` int(10) NOT NULL default '1',
  `user_name` varchar(150) NOT NULL default '',
  `user_address` varchar(200) NOT NULL default '',
  PRIMARY KEY  (`user_id`),
  UNIQUE KEY `user_id` (`user_id`)
) TYPE=MyISAM AUTO_INCREMENT=1062 ;

-- --------------------------------------------------------

--
-- Table structure for table `lmuser_queue`
--

CREATE TABLE `lmuser_queue` (
  `id` bigint(12) NOT NULL auto_increment,
  `date` bigint(12) NOT NULL default '0',
  `action` varchar(16) NOT NULL default '',
  `orgin_ip` varchar(26) NOT NULL default '',
  `orgin_url` text NOT NULL,
  `user_agent` varchar(255) NOT NULL default '',
  `user_name` varchar(150) NOT NULL default '',
  `user_email` varchar(150) NOT NULL default '',
  `user_groups` varchar(100) NOT NULL default '',
  `confirm_string` varchar(32) NOT NULL default '',
  `confirm_value` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1062 ;
       

is it what you need?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Copy of username and eMail to be sent to another table
« Reply #10 on: April 14, 2005, 09:00:17 PM »
ok, i will look on it..
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: Copy of username and eMail to be sent to another table
« Reply #11 on: April 15, 2005, 04:21:29 PM »
Thanks Nicky ..
I'll be waiting ..

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: Copy of username and eMail to be sent to another table
« Reply #12 on: April 23, 2005, 08:04:09 AM »
Any news Nicky?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Copy of username and eMail to be sent to another table
« Reply #13 on: April 29, 2005, 03:54:40 PM »
sorry.. was busy.. now going to vacation for 9 days...
hope u can wait so long.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: Copy of username and eMail to be sent to another table
« Reply #14 on: April 29, 2005, 04:28:37 PM »
I'll be waiting ..
:)