Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3628046
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:57:57+00:00 2026-05-18T23:57:57+00:00

///Send mail to members whom subscribed to receive mail $one = 1; settype($one, ‘integer’);

  • 0
///Send mail to members whom subscribed to receive mail

$one = 1;
settype($one, 'integer');

$two = 2;
settype($two, 'integer');

$query_news_mail = "SELECT M.id, M.j_email, M.j_news_alert, M.j_news_catid_notification FROM jt_members M WHERE (M.j_news_alert = $two AND M.j_news_catid_notification = $data[catid]) AND M.j_news_alert = $one;";
$mail_result = mysql_query($query_news_mail) or die(trigger_error(MYSQL_ERROR_MSG,E_USER_ERROR));

while($row_mail = mysql_fetch_assoc($mail_result)) {


//start sending mails here
echo "mail";
}

The second clause does not execute //M.j_news_alert = $one
Any ides?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:57:58+00:00Added an answer on May 18, 2026 at 11:57 pm

    Maybe you meant

    ... notice the OR in place of AND ...
    (M.j_news_alert = $two AND M.j_news_catid_notification = $data[catid]) OR M.j_news_alert = $one;
    

    Otherwise you cannot meet your WHERE condition: M.j_news_alert = $two AND M.j_news_alert = $one;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send mail to clients with two information, one is event for
I currently am using: mail($to, $subject, $body, $headers); To send emails to my members.
If I want to send mail not via SMTP, but rather via sendmail, is
I would like to send mail from a script on a Windows Server 2003
How do I send mail via PHP with attachment of HTML file? -> Content
I wish to send mail to an administrator when the application crashes. So I
I need to send mail daily using smtp and asp.net.
I could send mail from my Activity when i have already configured with any
I'm using the following method to send mail from Python using SMTP. Is it
What is the simplest way to send mail using Ruby on Rails? Is there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.