• 0

[JQuery][PHP][SQL] Can someone advice on file and site struction


Question

So I'm making a site using JQuery, PHP, and SQL

PHP handles all my SQL queries

JQuery for my AJAX calls and animations.

typically I know I would just make the site as I would, but I was thinking that because I'm going to deal with a lot of data that will be changed dynamically via AJAX what is the best way to organize my files so they can all be dynamically loaded and changed on the fly and output the changes back via my AJAX requests.

For example on my front page I will pull down last 5 recent activities, so I could use PHP to do a simple query and format the output in a table for the user. But if they change the LIMIT clause via an AJAX form I would call out to another .php page to handle the LIMIT change and UPDATE the database to reflect the new value. Then the front page would A) need a refresh to display the new data or B) somehow use JQuery to dynamically refresh the div that the content is currently in.

What would be the wisest way to about this? I don't want to have duplicate code everywhere when I can just have one file contain all my code and just selectively download the code I need?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.