User Profile

Collapse

Profile Sidebar

Collapse
manas1
manas1
Last Activity: Sep 23 '10, 05:39 AM
Joined: Sep 20 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • manas1
    replied to Add Pagination in PHP code
    in PHP
    Hello Dan, I have facing the same problem. Not able to identify where the error exactly coming from. I have posted details in my last reply. Please help me on this.
    See more | Go to post

    Leave a comment:


  • manas1
    replied to Add Pagination in PHP code
    in PHP
    I have added die(print_r($_P OST)); before $searchterm=$_P OST["searchterm "];
    I am getting the result:

    Array ( [selectfromlist] => auther_first_na me [searchterm] => a ) 1 and in the browser I am getting this url: http://localhost/upload/Search.php?page=2&searchterm=a

    Also i have checked the Home.html everything looks fine. selectfromlist and searchterm vriable is defined in the Home.html file....
    See more | Go to post

    Leave a comment:


  • manas1
    replied to Add Pagination in PHP code
    in PHP
    I have created one separate php page called Search.php and in the Search.php I have added pagination code.
    Here is the code: Search.php

    Code:
    <?php
    //Connect to DB
    mysql_connect("localhost","root","mysql") or die("Unable to connect to SQL server"); 
    mysql_select_db("upload_file") or die("Unable to SELECT DB"); 
    
    $Limit = 7; //Number of
    ...
    See more | Go to post
    Last edited by Markus; Sep 21 '10, 09:35 AM. Reason: Fixed [CODE] tags

    Leave a comment:


  • manas1
    started a topic Add Pagination in PHP code
    in PHP

    Add Pagination in PHP code

    I am working on php and mysql. Want to do pagination.
    Here is my flow:

    In the Login page user upload the document by giving there first_name, last_name, etc. In the login page also I have added search functionality. As per the query in the search field i am displaying the record.

    Right now I am able to displaying the record as per the search query but i want to add paging in the code. here is the code:
    ...
    See more | Go to post
    Last edited by Atli; Sep 21 '10, 01:09 AM. Reason: Please wrap your code examples in [code] ... [/code] tags.
No activity results to display
Show More
Working...