the above as nothing to do with if (mysql_affected_rows() === 0) {
Look at the files it call on
And the line your looking at must be as below
PHP Code:
if (mysqli_affected_rows($GLOBALS["___mysqli_ston"]) === 0) {
Also what Platform you going to us it on and it may not work when you done it
it will need a few more functions for it too work
Ive done so many i know what im talking about