Fatal error: unsupported operand types in ..?

The line that caused this error is as follows:

$ celkova_suma = mysql_result ($ c_res, 0, 0) + mysql_result ($ d_res, 0, 0) - $ zlava_suma + $ ar [$ _ POST ['sp_platby']];

Can someone tell me what I should look for?

+6
php mysql message
source share
1 answer

Use ` var_dump () for each part of your equation, and you will probably find out that one of them is an array or an object, not a string or an integer.

+14
source share

All Articles