Hello. I'm getting warning division by zero messages with the below statement.
$average=$getcostline2[totalsum]/$getcostline[receivedsum];
Can I suppress these error messages from displaying on the screen?
Unless you have totalsum and received sum defined as constants in your script, use them properly as strings. i.e. use $getcostline2['totalsum'] and $getcostline['receivedsum']
To avoid division by 0, check the denominator for 0. i.e. if $getcostline['receivedsum'] = 0, then handle the error yourself.
Use the error control operator, @, or set php.ini not to display errors/warnings of the required level.