3
For understanding my question you should know about the query / queryF thing in XOOPS. Using the query function of the xoopsDB object requieres not to use variables referencing $_GET-values in the SQL string.
But I'm using such a variable as you can see in the code above.
Now I want to "convert" the variable to use it in a query function.
Again:
$cid = (isset($_GET['cid']) ? (int)$_GET['cid'] : 0;
so $cid is my variable referencing the $_GET-value 'cid'.
As an example see the following sql query:
$xoopsDB->query("DELETE FROM ".$xoopsDB->prefix("table")." WHERE cid=$cid");
This one is not beeing executed because $cid is part of it. To make the query work, I have to use the function "queryF".
And exactly that's the problem: I can't use it because the problem I'm adressing occures in the kernel (groupperm.php).
I hope you know what I mean.