I did a print_r on my array $total and it returned the following:
Array ( ) Array ( ) Array ( ) Array ( ) Array ( [0] => stdClass Object (
[generated] => 6 [magnitude] => 3 [log_pk] => 14 [result] => 0.5000 ) )
Array ( ) Array ( )
I need to be able to print out log_pk from within the stdClass Object. I have tried print $total[0]->log_pk but that was unsuccessful. The error was Undefined offset: 0. Any help is appreciated. Thanks.
Array ( ) Array ( ) Array ( ) Array ( ) Arr...at the beginning?$totalvariable is the result of a MySQL query, eachArray()I'm assuming represents a particular day as the query was based on the last 7 days. I also tried,$total[4][0]['log_pk]and there was no luck.Undefined offset: 0