Advertisement

10.13.2008 at 08:08AM PDT, ID: 23809671
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

mysql different answers for the same query in php

Asked by MeridianManagement in PHP and Databases, MySQL Server, SQL Query Syntax

I have two queries.

The first has a where clause 1=1, and works in both PHP and phpmyadmin console.

The second has a where clause with a like and in phpmyadmin and it works. Then I run it in PHP and I get an error.

Below I will show you the first query and the second query and the error that php gives me.Start Free Trial
1:
2:
3:
4:
5:
6:
// works in both phpmyadmin and php
SELECT zc_products_notifications.customers_id, zc_customers.customers_firstname, zc_customers.customers_lastname, zc_customers.customers_email_address, zc_products_description.products_name FROM zc_products_notifications LEFT JOIN zc_customers ON zc_products_notifications.customers_id = zc_customers.customers_id LEFT JOIN zc_products_description ON zc_products_notifications.products_id = zc_products_description.products_id WHERE 1=1 ORDER BY zc_products_notifications.customers_id
 
// returns error that says
// "Search error : Unknown column 'zc_products_notifications.zc_customers.customers_firstname' in 'where clause'" but this is not the column I'm sending in where clause.
SELECT zc_products_notifications.customers_id, zc_customers.customers_firstname, zc_customers.customers_lastname, zc_customers.customers_email_address, zc_products_description.products_name FROM zc_products_notifications LEFT JOIN zc_customers ON zc_products_notifications.customers_id = zc_customers.customers_id LEFT JOIN zc_products_description ON zc_products_notifications.products_id = zc_products_description.products_id WHERE 1=1 AND zc_customers.customers_firstname like '%e%' ORDER BY zc_products_notifications.customers_id LIMIT 100
[+][-]10.13.2008 at 08:15AM PDT, ID: 22703136

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 08:17AM PDT, ID: 22703161

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 09:05AM PDT, ID: 22703564

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 09:09AM PDT, ID: 22703603

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP and Databases, MySQL Server, SQL Query Syntax
Sign Up Now!
Solution Provided By: CCongdon
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.13.2008 at 10:26AM PDT, ID: 22704255

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 10:35AM PDT, ID: 22704344

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 10:54AM PDT, ID: 22704551

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 11:01AM PDT, ID: 22704612

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 02:07PM PDT, ID: 22706483

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 - Hierarchy / EE_QW_2_20070628