Search code examples
phperror-handlingjpgraph

How to display custom message in jpgraph, when error occures?


Sometimes jpgraph can not create graph, in a case of NULL values.

How can I display some custom error message in that case? Like "No results found" or something like that.

Thank you in advance!


Solution

  • if($instanceofjpgraph === null){
       echo "some error";
    }