This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Find all posts by this user
Quote this message in a reply
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

Find all posts by this user
Quote this message in a reply
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)