Insert query using nuRunQuery

Insert query using nuRunQuery

Postby nbp » Fri Nov 27, 2015 6:59 pm

hi nubuilderpro team and all,

first, I would like to thanks the team for the creation of nubuilderpro.
I encountered problem with Insert query using nuRunQuery.
I manually create a table via phpmyadmin:

Code: Select all
create table test2 (col1 varchar(50) null)

then i create a custom code in the javascript section:

Code: Select all
function a()
nuRunQuery("insert into test2 values (1)");

and create a javascript button to attach the function a() above.

However, it seem the query does not carry out in mysql, and there is not debug/error message in the nubuilderpro.
(the above insert query can be executed in the phpmyadmin)

Anything that i missed? Please guide, and thanks.
Posts: 2
Joined: Fri Nov 27, 2015 6:43 pm

Re: Insert query using nuRunQuery

Postby admin » Mon Jan 25, 2016 2:20 pm

Site Admin
Posts: 3406
Joined: Mon Jun 15, 2009 9:53 am
nuBuilder Version: 4.5

Return to Custom Code