How do I create a php page with employee data from a database and when I scroll down it loads more data?
|
05-01-2013, 08:11 AM
Post: #1
|
|||
|
|||
How do I create a php page with employee data from a database and when I scroll down it loads more data?
I am asked to do this on Monday in a system with SQL, Apache, etc with no internet.
I need to create a PHP page with list of employees from a database and it should load more when i scroll down just like Facebook does when you scroll i.e, load more data. Please help me how to do this with code. A video tutorial would be much appreciated. Thank you. Ads |
|||
05-01-2013, 08:25 AM
Post: #2
|
|||
|
|||
Check your select query.Which tables are actually related each other and data comes through that tables.
Ads |
|||
05-01-2013, 08:39 AM
Post: #3
|
|||
|
|||
I'm not sure what Facebook is using but if you want to do it in PHP you'll need to use javascript as well.
Use php to query the list of employees from the database then pass it to javascript to handle the page. Javascript can handle updating pages as you scroll php by its self cannot. Do a google search for something like "javascript load page onscroll" or Ajax load page onscroll. actually I may have found 1 check this out (I didn't watch the video) http://www.developphp.com/view.php?tid=1265 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)