'; $stmt = OCIParse($con, $query) or die ('Can not parse query'); OCIBindByName($stmt,":group_id", &$gid, 20) or die ('Can not bind variable'); $gid=1; // for gid =1 or 2 OCIExecute($stmt) or die ('Can not Execute statment'); while (ocifetch($stmt)){ echo '
'.$con." <".ociresult($stmt,"MCOUNT").">\n\n"; $_friends=ociresult($stmt,"MCOUNT"); echo '
'.$con."----done\n\n"; } echo '
'; OCIFreeStatement($stmt); OCILogoff($con); echo "We have $_friends in group $gid. "; ?>