开发者

Query mySQL natively from JQuery without the need for PHP etc

G'Day,

Is it possible to query mySQL directly from within jQuery w开发者_如何学JAVAithout having to use PHP/Python/Ruby etc.?


You can't do it with MySQL because it uses a binary protocol that the browser doesn't speak. You can do it with CouchDB, though, which uses HTTP and JSON so it's perfect for this kind of thing.


no, jQuery is on client side and it isn't able to access directly to the database


No you can not do it. Because all jquery code runs on client. You can use jquery ajax methods to call php or another webservices. Simply jquery or another javascript library can not do it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜