Welcome to the nuBuilder forums!

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

Using php Variable nuRunQuery

Post Reply
saultpastor
Posts: 42
Joined: Sat Jul 18, 2015 8:04 pm
Has thanked: 1 time

Using php Variable nuRunQuery

Unread post by saultpastor »

Would someone be so kind as to show me my error:

<?php

nuRunQuery("INSERT INTO response (res_name)
VALUES ('John Doe')");

?>

I'm running this as a php procedure, it should simply post "John Doe" into the column "res_name" in the table "response".
It works when I run it as a query in phpMyAdmin, I have searched an read but the answer is eluding me. I'm sure I'm making a very simple mistake...

Thanks,
Craig
admin
Site Admin
Posts: 2791
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 4 times

Re: Using php Variable nuRunQuery

Unread post by admin »

Craig,

Look in the Debug Form after you run it for an SQL error.

AND don't use <?php

Steven
saultpastor
Posts: 42
Joined: Sat Jul 18, 2015 8:04 pm
Has thanked: 1 time

Re: Using php Variable nuRunQuery

Unread post by saultpastor »

Steven,

Thank you for your patience.

Craig
admin
Site Admin
Posts: 2791
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 4 times

Re: Using php Variable nuRunQuery

Unread post by admin »

.
Post Reply