sql - How to connect to database in JavaScript -


how can connect mysql db js function?

i found question:

how connect sql server database javascript?

but doesn't work on chrome, because they're using activexobject.

thank you.

there no solution on web browser side allow work browsers. there many disadvantages work database on browser site.

first of all, show database structure , dangerous. imagine, how easier make sql-injection while know tables , fields?

you have establish connection in way using password shown third party users. or have set password-less connection, dangerous.

when establish connection database, can easly execute own query trivial, because showing structure.

i recommended not on browser side.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -