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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:58:01+00:00 2026-06-06T21:58:01+00:00

i m try to implement highcharts on my website but i dont know how

  • 0

i m try to implement highcharts on my website but i dont know how i can get info from database on exactly away.

On my jquery i have this

    xAxis: {
                categories: [1,2,3,4,5,6,7,8,9,10]
            },

this represent the days of the current month, like today is 10 so go 1 to 10

series: [{
                name: 'acessos',
                data: [1,0,0,0,0,0,7,0,0,4]
            },

this represent the clicks by day

so my database have this structure

tabstats |tabstats.Stats_Id | tabstats.Stats_Type | tabstats.Stats_Clicks | tabstats.Stats_Date |

so them i have

Stats_Id = 1 / Stats_Type = 1 / Stats_Clicks = 10 / Stats_Date = 2012-05-01

Stats_Id = 2 / Stats_Type = 1 / Stats_Clicks = 5 / Stats_Date = 2012-05-02

etc for each day

so i m try to first get the current days of the month

and the clicks for each day.

Thanks for any help.

i figured how to output the days of the current month like this

for($i=1; $i <= date("d"); $i++) { $days[] = $i;    }
echo json_encode($days); // ouput [1,2,3,4,5,6,7,8,9,10]

Now i just need to fix about the clicks

for($i=1;$i <= date("d"); $i++) {
        $Sql = "SELECT COUNT(Stats_Clicks) AS Total FROM tabstats WHERE DAY(Stats_Date) = $i
                AND MONTH(Stats_Date) = $month
                AND YEAR(Stats_Date) = $year 
                ";
        $Query = mysql_query($Sql,$Conn) or die (mysql_error($Conn));
        $Rs = mysql_fetch_array($Query);    

        $clicks[] = $Rs['Total'];
    }
    echo json_encode($clicks);

but here i got a problem, the json output returns this

["1","1","0","0","0","0","0","0","0","0","0"]

but i need without quotes, i tried using a simple vector but dint works for me.

I dont know if my code is the best solution or correctly but this is the only away i m going to the result i need.

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-06-06T21:58:04+00:00Added an answer on June 6, 2026 at 9:58 pm

    Solution

    $clicks[] = (int)$Rs['Estatistica_Click'];  
    

    fixed.

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

Sidebar

Related Questions

I try to implement a Google +1 button in my website, but for some
I try to implement a SHA1 decoder but i can't find something usefull on
i am just try to implement the tutorial from here but i have problem
I try to implement footer datagrid with allowMultipleSelection properties. But in my case, it
I try to implement a browser-like app. I want to let it can open
If I try to implement my class on this file I get an error
I had try to implement the send me log feature into my apps but
i try to implement the accordion jquery for toggle slide down and slide up
I try to implement simple server on python based on HTTPServer. How can i
I want to try to implement the Tetris Game using TDD. From what I've

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.