I'm trying to get Javascript to read/write to a PostgreSQL database. I found this project on github. I was able to get the following sample code to run in node.  var pg = require('pg'); //native libpq bindings = `var pg = require('p...
I know how to do this with pure PHP but I need to do this without reloading the page.  Is there anyway with jQuery to effectively pull back some database results (based on what a user has input in the first text field on a form) then populate some of...
I was doing a survey I was offline server so I save users information in cookies, I have users Information like this   Fname:Ali,Lname:Kheiri,title:Director,org:Magiclamp,email:[email protected] Fname:Ali,Lname:Kheiri,title:Director,org:Magiclamp,e...
anyone know of a solution? i have found online a select menu for countries, but i need either an API or a database with every state/province and major city in each country....
Is it possible to connect database with javascript....
Currently, I have a script that when the image in the top right tray is clicked(only for one specific allowed website), it scans the pages HTML then outputs some value. This scanning and outputting is a function in a single JS file, called say checkD...
I want to reuse MongoDB connection. I 'am aware of How to reuse mongodb connection in node.js  I want to acheive the same using Promises and Mongo driver v2  Currently I have to connect to db for every request which makes it slow. This is my code...
I am new to node.js but am excited to try it out. I am using Express as a web framework, and Jade as a template engine. Both were easy to get setup following this tutorial from Node Camp.  However the one problem I am finding is I can't find a si...
I am a bit confused with SQLite at the moment, as this is the first time I'm ever using a database. I got sqlite3 from here: https://github.com/developmentseed/node-sqlite3.  I'm looking at that example there, some things I do understand, whi...
Refer to this question for additional info:  MongoDB Best way to pair and delete sequential database entries    Okay so I'm making a game of "blind war" if you will!  Basically it works like this:  There are 10,000 users playing at one ti...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.