I have the following query : avp_db_load("$ruri/username","$avp(s:callfwd)") that returns more than one row. My questions are: 1) How to get the number of rows 2) How to fetch them one by one I tried to use : $avp(s:callfwd[1]) but with no success Thanks Eli