Hi,
I created PHP Procedures. Works. After some time, I need edit procedure No1 php code. When save, get 403 Forbidden Error. Interesting, that other procedures I can edit, but when copy-paste procedure No1 PHP code, get this error.
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.
Error when edit Php Procedures
-
- Posts: 21
- Joined: Sat Feb 07, 2015 11:19 pm
Error when edit Php Procedures
- Attachments
-
- Procedure error.JPG (24.28 KiB) Viewed 1847 times
Last edited by Arunas on Sat Feb 04, 2017 5:47 pm, edited 1 time in total.
-
- Posts: 21
- Joined: Sat Feb 07, 2015 11:19 pm
Re: Error when edit Php Procedures
When write in php code UNION, then get error. Whithout UNION, I can save procedure. I don't understand, how I save earlier.
$s = "
SELECT field1 as field
FROM table
GROUP BY field1
UNION
SELECT field2 as field
FROM table
GROUP BY field2
";
$s = "
SELECT field1 as field
FROM table
GROUP BY field1
UNION
SELECT field2 as field
FROM table
GROUP BY field2
";