michel_snyers
Member
Hello,
I updated my site from joomla 1.5 to Joomla 2.5.
Everything works fine except some forms that use the plugin Email.
In Email To (Eval), I have the following code:
$ db = JFactory :: getDBO ();
$ cyclo = JRequest :: GetVar ('joskj_depenses_mysql_2___ID_CYCLO');
$ sql = "select email from joskj_users Where id_cyclo cyclo = $;"
$ db-> setQuery ($ sql);
$ email = $ db-> loadResult ();
return ($ email);
If I try to save the form, I get the error message 403.
Now, if I delete 'SELECT' code above, I can save the form.
Why the word SELECT is not allowed?
Thank you very much.
Regards
I updated my site from joomla 1.5 to Joomla 2.5.
Everything works fine except some forms that use the plugin Email.
In Email To (Eval), I have the following code:
$ db = JFactory :: getDBO ();
$ cyclo = JRequest :: GetVar ('joskj_depenses_mysql_2___ID_CYCLO');
$ sql = "select email from joskj_users Where id_cyclo cyclo = $;"
$ db-> setQuery ($ sql);
$ email = $ db-> loadResult ();
return ($ email);
If I try to save the form, I get the error message 403.
Now, if I delete 'SELECT' code above, I can save the form.
Why the word SELECT is not allowed?
Thank you very much.
Regards