Hi,
I have a "little" problem because I dont know whats the best way to handle ajax jquery databeas request?
So far I've done it this way: For ever (single) database request I created a new .php file like:
newbill.php
newcosumer.php
listallbills.php
updatecostumer.php
..and so on and pull the data via:
$.ajax({
type: "POST",
url: "ajax/newbill.php",
data: "..."
success: function(msg){
...
}
});
..what I dont like is all the .php files for only ONE! database request!? There must be a better way to handle this??