Twitist Forums
How do I create a php page with employee data from a database and when I scroll down it loads more data? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: Facebook forums (/forum-14.html)
+--- Forum: General facebook and life forums (/forum-25.html)
+--- Thread: How do I create a php page with employee data from a database and when I scroll down it loads more data? (/thread-69906.html)



How do I create a php page with employee data from a database and when I scroll down it loads more data? - Akshay - 05-01-2013 08:11 AM

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.


- bitus mama - 05-01-2013 08:25 AM

Check your select query.Which tables are actually related each other and data comes through that tables.


- Rhino - 05-01-2013 08:39 AM

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