Need help in PHP / Oracle 10g pagination

Discussion in 'PHP' started by ksamir2004, Mar 14, 2008.

  1. #1
    Hi

    can any one help me to write the code for PHP/oracle 10g pagination. i need Code for that..

    Thanks
    Sam
     
    ksamir2004, Mar 14, 2008 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    do you know how to query your records?
     
    bartolay13, Mar 14, 2008 IP
  3. ksamir2004

    ksamir2004 Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i know sql Query..

    i need PHP/Oracle 10g code.

    so i can implement those stuffs.
    $conn = oci_connect('x2esaDB', 'er231as', '//lslsa.ssos.ssspx.com/XE');
    $query="SELECT * FROM USER_DATA" ;
    $stid = oci_parse($conn, $query);
    oci_execute($stid);


    Thanks
    Sam
     
    ksamir2004, Mar 14, 2008 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    when i paginate my records i limit the search result

    $query = "select * from tablename where .... limit (0,10)";

    then i just increment the value of the limit...
     
    bartolay13, Mar 14, 2008 IP
  5. ksamir2004

    ksamir2004 Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Limit Function doesn't work with oracle Database.. it works for Sql Server & mysql.

    thanks
    sam
     
    ksamir2004, Mar 14, 2008 IP
  6. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #6
    I'm working with Oracle in PHP but all queries I get from a real specialist in Oracle. I have pagination queries to in my project and they all look like described on oracle website.
    Hope this helps :)
     
    AsHinE, Mar 14, 2008 IP