Page 1 of 1

Insert query using nuRunQuery

Posted: Fri Nov 27, 2015 10:29 am
by nbp
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.

Re: Insert query using nuRunQuery

Posted: Mon Jan 25, 2016 5:50 am
by admin
npb,

nuRunQuery is a PHP function.

http://wiki.nubuilder.net/nubuilderv3/i ... alse.5D.29

Steven