Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
No, it cannot for security reasons. Javascript code is client-side, which means anyone can read it...including any parts related to connection to the database.
This could be done in AJAX, but not Javascript. How you do it depends on your setup, there are about a million answers, and you're not going to get one in this thread for what you're doing.
This, however, leads to a deeper problem...you seem to be overtrained in knowledge and undertrained in application and critical thinking. You need to do some studying up on what different languages can do and how they're to be used.
|