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
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
Using php Variable nuRunQuery
-
- Posts: 42
- Joined: Sat Jul 18, 2015 8:04 pm
- Has thanked: 1 time
-
- 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
Craig,
Look in the Debug Form after you run it for an SQL error.
AND don't use <?php
Steven
Look in the Debug Form after you run it for an SQL error.
AND don't use <?php
Steven
-
- Posts: 42
- Joined: Sat Jul 18, 2015 8:04 pm
- Has thanked: 1 time