PHP - Simple Ajax framework for MySQL data calls

Associate
Joined
19 Jun 2003
Posts
1,680
Location
West Yorks, UK
Hi folks,
Just wondering if anyone has any recommendations for a PHP/Ajax framework that makes calls to MySQL simple? I've have investigated a few frameworks that do loads of different things - I only really need to execute queries from MySQL and nothing more. I figured there would likely be a framework already setup for this.

Any ideas?

Matt
 
this is why i never understand the whole javascript fascination. why bother learning a language that people can switch off, or a language that you have to offer an alternative to, just in case someone has it switched off and they pose a security risk?! it's madness!!

i guess i can see it from a "keeping-some-strain-from-the-db/server" pov, but are the differences really that great between using/not using javascript?
 
It's also problematic having to cater for each browser-specific function, but.. it's useful in places. AJAX for one, another is on high traffic sites, form validation is carried out client side (as well as server side) to reduce traffic and bandwidth when the user incorrectly enters a field.
 
Depends.. how busy is your site?

9/10 when incorrect or invalid information is passed it is a legit user making a mistake, so to have the client end inform the user they need to renter their info, instead of submitting to the server, then the server generating the output for the response and sending the response, can cut down quite a lot on the bandwidth used.

Think of it like this (server side validation only):
Code:
[user enters and submits]->[server validates info - it fails]->[server generates response and sends to the client]
Compared to client side validation, for 9/10 submissions:
Code:
[user enters and submits info - client validates info]->[server validates info and it will rarely be wrong due to client validation]
 
yeah i guess so. i wasnt thinking for my site, as i'm fairly sure that i'm the only person who visits it. but it's worthwhile bearing in mind for when i (hopefully) get on to making sites that might get a bit more traffic
 
Sic said:
yeah i guess so. i wasnt thinking for my site, as i'm fairly sure that i'm the only person who visits it.
That's simply not true, I've looked at it for at least a few seconds.



I've looked at the whole thing actually and read most of your blog, more people are nosey than you think.
 
It's best to cater for non-Javascript users, but you have to gain some perspective and realise than 99.9% of graphical browsers will have it turned on, and those who don't are probably (and must be) used to browsing a less-functional internet.
 
I wouldn't use JavaScript for anything that couldn't degrade to server-side, but for things like CMS admin screens, it is a must for making a user friendly interface.

So back on topic - can anyone recommend a simple AJAX framework for PHP?

Matt
 
Back
Top Bottom