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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:29:44+00:00 2026-06-13T10:29:44+00:00

I am having a strange issue. Once connected to the database, I can return

  • 0

I am having a strange issue.

Once connected to the database, I can return only one column of values (the FG-PCT column).

Here is my query:

$query = "SELECT sstorm_players.player_LastName  AS 'Full Name',          
sum(sstorm_rawstats1.stats1_GP) AS 'GP',
sstorm_players.player_PlayerID AS 'PlayerID',
sstorm_players.player_Current AS 'Current',
sstorm_players.player_YEAR2011_12 AS '2011-12',
Sum(sstorm_rawstats1.stats1_FGM) AS 'FGM', 
Sum(sstorm_rawstats1.stats1_FGA) AS 'FGA',
ROUND((sum(sstorm_rawstats1.stats1_FGM) / sum(sstorm_rawstats1.stats1_FGA)*100),1 AS    'FG-PCT' 

FROM sstorm_players INNER JOIN sstorm_rawstats1 
ON sstorm_players.player_PlayerID = sstorm_rawstats1.stats1_PlayerID 
 WHERE sstorm_players.player_PlayerID = sstorm_rawstats1.stats1_PlayerID
GROUP BY sstorm_players.player_PlayerID
HAVING sstorm_players.player_YEAR2011_12 = true 
order by ROUND((sum(sstorm_rawstats1.stats1_FGM) / sum(sstorm_rawstats1.stats1_FGA)*100),1) desc";

When I echo the selected values, I can only return one of the columns (the FC-PCT column).

Here is an example of my echo statements:

// this statement has values that do not get returned
echo "<td align='center' bgcolor='$row_color'><strong>" . $row['FGM)'] . "</strong></td>";

// this statement has values that do not get returned
echo "<td align='center' bgcolor='$row_color'><strong>" . $row['FGA)'] . "</strong></td>";

// this statement has values that get returned
echo "<td align='center' bgcolor='$row_color'><strong>" . $row['FG-PCT'] . "</strong></td>";

I am not echoing all of the columns in my query.

Any help would be much appreciated.

Thank you,

Ken

  • 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-13T10:29:45+00:00Added an answer on June 13, 2026 at 10:29 am

    You have a right paren in your array key which is why it can’t access the values:

    $row['FGM)'] should be $row['FGM'] and

    $row['FGA)'] should be $row['FGA']

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

Sidebar

Related Questions

I am having a strange issue that I can't seem to resolve. Here is
I am having a strange issue here I hope you all can help with.
I'm having a strange issue that I can't seem to figure out. I tried
I'm having a strange issue with RedirectToAction in MVC 3.0. Here is the code
I'm having a strange issue here, i have this bit of code: <?php if
Having a strange issue - we have a page that uses a query string
I'm having a strange issue with counting form elements in jQuery. While I can
I am having a strange issue with the developer documentation (which i have only
I am having a strange issue with TableView. Here is some code to clarify
i'm having a strange issue regarding the editorFor helper from MVC3. Here's the thing:

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.