Directory with more than 32 records?

Version 1
    This document was generated from CDN thread

    Created by: dianely fattal on 07-10-2010 08:49:42 PM
    I am creating a directory a search conducted by code and consult a database on "SQLSERVER" this query returns me more than 32 records and "CiscoIPPhoneDirectory" admits only 32 records would like to know how to display the register 33 to 65 I am using "SoftKeyItem" and there in the "URL" code sent to another page and do the query to the database again and gives me an error, also use the "SoftKeyItem: Next" but I served as what I did was refresh the page, please help me? here is part of the code. The programming languaje used is PHP.
     
       if($cant_registros>=32)
       {
          print("<CiscoIPPhoneDirectory>\n");
          print("\t<Title>Agencia VoIP</Title>\n");
          print("\t<Prompt>Llamar a esta Oficina</Prompt>\n");
          if($cant_registros!="")
           {
             while($row = mssql_fetch_array($resultado) and $c<=32)
              {
                print("\t<DirectoryEntry>\n");
                print("\t\t<Name>");
                print($row." "."(".$row.")");
                print("</Name>\n");
                print("\t\t<Telephone>");
                print($row);
                print("</Telephone>\n");
                print("\t</DirectoryEntry>\n");
                $c++; //puedo colocar esta c como registro
             }
             //$CantPag=$cant_registros/32;
             $RegistroPagI=$registro+1;
             $RegistroPagF=$RegistroPagI+$registro;
              print("\t<SoftKeyItem>\n");
              print("\t\t<Name>Massss</Name>\n");
              print("\t\t<URL>http://106.31.87.168/Directory/Main/AgenciaCodigo.php?C=$codigo</URL>\n");
              print("\t<Position>4</Position>\n");
              print("</SoftKeyItem>\n");
              print("</CiscoIPPhoneDirectory>\n");
           
             }
        }

    Subject: RE: Directory with more than 32 records?
    Replied by: JAMES DEPHILLIP II on 04-11-2010 11:39:17 PM
    You can use PHP Sessions with session_start();