Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,208,008 members, 8,001,085 topics. Date: Tuesday, 12 November 2024 at 10:24 PM

Help Me Look At This Small Problem - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Help Me Look At This Small Problem (1264 Views)

Hello Guys, Help Review This Small Website / Please Help Look At My Code (what is wrong with my code ) / A Critical Look At Nairaland's Anti-spam Bot Or Whatever... (2) (3) (4)

(1) (Reply) (Go Down)

Help Me Look At This Small Problem by FrankLampard: 9:36am On Jan 25, 2017
JavaScript: I have two function.

1. Bisi = function(){
2. var query = "SELECT * FROM Table";
3. }

4. Ada = function(){
5. //Stops here
6. var query = "INSERT to TABLE";
7. }

Bisi();
Ada();

When this two function is being hit by the browser, Bisi() is executed and runs fine, Ada() executes, but stops at Line 5 and moves to another method to perform another task inside the JavaScript declaration.

What could be the issue? How do I resolve?
Re: Help Me Look At This Small Problem by smartanthony5: 9:47am On Jan 25, 2017
computer scientist,oya!
Re: Help Me Look At This Small Problem by Nobody: 1:57pm On Jan 25, 2017
In general programming, It seems the database hasn't released control. It's probably why you can't run another query on it. Hence, the stoppage on line 5.

I'll advise you to check javascript documentation if there is a way you can run queries simultaneously.
Re: Help Me Look At This Small Problem by FrankLampard: 5:12pm On Jan 25, 2017
TakeMeSerious:
In general programming, It seems the database hasn't released control. It's probably why you can't run another query on it. Hence, the stoppage on line 5.

I'll advise you to check javascript documentation if there is a way you can run queries simultaneously.

There are so many libraries that can allow you to use SQLite on the Web this days.
Re: Help Me Look At This Small Problem by SeunLanLege(m): 9:03am On Jan 26, 2017
Insert into, not insert to
Re: Help Me Look At This Small Problem by CodePlay1(m): 12:38am On Jan 27, 2017
Insert "into"
Re: Help Me Look At This Small Problem by Phourxx(m): 6:45am On Jan 27, 2017
"INSERT TO" should be "INSERT INTO" meanwhile if it still fails, then you should check the js console on your browser for error message.

(1) (Reply)

3D Animations | Motion Graphics | Web Design And Development+more:training Here / Java Codes For Beginners And Pros (relaxation Thread) / CI From PC To Bitbucket To Jenkins To Docker To Ubuntu VPS Running Nginx Block

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.