Home Forums Chart Support Error with date

Error with date

Viewing 3 posts - 1 through 3 (of 3 total)
  • #27764

    $start = date(‘Y-m-d’, mktime(0,0,0,date(“m”), date(“d”)-2, date(“Y”)));

    I have this line in my code and get an error ‘Parse error: syntax error, unexpected ‘Y’ (T_STRING), expecting ‘)’ in C:\xxxx\xxx\xxxx.php on line 14
    This line is valid in php but not in JS?????????????

    I am trying to use the sample code off your web site to use the carts with Mysql

    it has a line that says
    header(‘Content-Type: application/json);
    if I commit out this line I do not get the error.

    Something in the above line is causing the error

    any ideas

    #27785

    Is there any support personal on this from I guess this is a good reason not to purchase this software for my project

    #27791

    @mustybob,

    Can you kindly create a sample project reproducing the issue and share it over Google-Drive or Onedrive along with sample data so that we can look into the code, run it locally to understand the scenario better and help you resolve?

    From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact requirements or the solution that we provide may not work properly due to the variation in chart-options being used by you and us.

    Having a sample project helps us in figuring out the issue and suggesting an appropriate solution accordingly.


    Shashi Ranjan
    Team CanvasJS

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.