I need yours help with counting issues, I have array from browser SESSION
$co = array_unique($_SESSION['number']);
array will be like below
Array ( [0] => 0701 [1] => 0537 [2] => 0649 [3] => 0703 [4])
now i will use $co to perform SQL query
$result_eed = mysql_fetch_assoc(mysql_query("SELECT `number` FROM baza WHERE `Number`='$co' AND `Number` NOT LIKE '%ERROR%'"));
Now is my question how to return sum of all findings not separate value for each array. I need to have ONE number for all value from array, sum
mysql_fetch_assocandmysql_querylike that is bad practice. You should be checking ifmysql_querythrew any errors before trying to fetch its rows.