User Profile
Collapse
-
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. -
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....Leave a comment:
-
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 ofLeave a comment:
-
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:
...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
Leave a comment: