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 8732965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:32:43+00:00 2026-06-13T09:32:43+00:00

I know this might seem like a simple question, but its answer has been

  • 0

I know this might seem like a simple question, but its answer has been eluding me for quite some time now. I’m trying to return the number of rows from the databases using the WHERE clause. My query is as follows:

$query = "SELECT COUNT(*) 
          FROM nfl_current_season_games
          WHERE home_team = 'Indianapolis Colts'
          AND away_team = 'Chicago Bears'
          AND week = '1'";

I’m 100% sure there is such a row. I’m looking right at it in phpmyadmin. No matter if I execute the query with pure SQL in phpmyadmin or in a browser via a php script, it still returns a value of 0. I tried using the var_dump function for the $away_team and $home_team variables with php and they’re both just fine. I don’t know where to go from here because this seems so odd.

Does anyone have any tips or clues?

Thanks,

Lance

  • 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-06-13T09:32:44+00:00Added an answer on June 13, 2026 at 9:32 am

    you probably have blank stapces or a collation issue in one of the column.

    I suggest you run the query with one condition at a time and try to find out which one is causing the issue.

    When you find out, paste it here to see if we can help

    EDIT:

    try to do something like (not sure about the mysql syntax, but the idea is to trim to remove blanck spaces and send it to upper):

    UPPERCASE(TRIM(away_team)) = 'CHICAGO BEARS'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might seem like a simple question but Id like to know the fastest
This might seem like a very simple solution to some people but I have
This question might seem strange but I have been searching for an answer for
I know this might seem like a duplicate, but I'm not getting anywhere with
I know this might seem a controversial question but it really is not meant
I know this question might be little silly but I can't seem to find
This question might not seem very technical but, out of curiosity,I want to know
I know this might seem like hw question, and be my guest to treat
This might seem like a dump question, but my complete ignorance with VbScript is
this might sound like a daft question but I can't seem to find a

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.