Ouch - must be too tired - last time.. promise! It should of course be: } else if (mysql_affected_rows() > 0) { And the other: $returnVal[0] = mysql_insert_id(); I am so so so so deeply sorry Sincerely, Dennis Petersen (fessorman)