Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Insert query using nuRunQuery

Post Reply
nbp
Posts: 2
Joined: Fri Nov 27, 2015 10:13 am

Insert query using nuRunQuery

Unread post 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.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Insert query using nuRunQuery

Unread post by admin »

npb,

nuRunQuery is a PHP function.

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

Steven
Post Reply