Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Idea for contribution


zeop

Recommended Posts

Hello Gurus -

I have been toying with the idea of monthly raffle code for our giveaway

It would be based on a few criteria....

 

1) They have to have logged in within the specified time period

2) They must receive the newsletter

 

The SQL code would look like this....

 

//Check who logged in/created an account that month

 

SELECT * FROM `customers_info` WHERE

(`customers_info_date_of_last_logon` >'2003-10-00' AND`customers_info_date_of_last_logon` <'2003-11-00')

OR

(`customers_info_date_account_created` > '2003-10-00' AND`customers_info_date_account_created` < '2003-11-00');

 

//Look up name and email - verify newsletter

 

SELECT * FROM `customers` WHERE `customers_id` = '7';

 

Is this out there already?

Is someone much more capable then I willing to give it a shot?

 

Thanks...

Link to comment
Share on other sites

  • 2 months later...
Hello Gurus -

I have been toying with the idea of monthly raffle code for our giveaway

It would be based on a few criteria....

 

1) They have to have logged in within the specified time period

2) They must receive the newsletter

 

The SQL code would look like this....

 

//Check who logged in/created an account that month

 

SELECT * FROM `customers_info` WHERE

(`customers_info_date_of_last_logon` >'2003-10-00' AND`customers_info_date_of_last_logon` <'2003-11-00')

OR

(`customers_info_date_account_created` > '2003-10-00' AND`customers_info_date_account_created` < '2003-11-00');

 

//Look up name and email - verify newsletter

 

SELECT * FROM `customers` WHERE `customers_id` = '7';

 

Is this out there already?

Is someone much more capable then I willing to give it a shot?

 

Thanks...

I'd like something like that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...