| Re: My own module |
| by phillipd on 2005/1/13 21:39:13 That works great, thanks! Doug P |
| Re: My own module |
| by ejuden01 on 2005/1/13 21:29:12 Instead of calling $xoopsDB->query(), call $xoopsDB->queryF() |
| Re: My own module |
| by phillipd on 2005/1/13 21:26:17 Is there a way to avoid this security issue, in a secure manner, of not allowing a insert,update,delete from a GET? I need to possibly do a insert when a user hits a page depending on if something exists in the DB. How would I do this? Thanks Doug P |
| Re: My own module |
| by ackbarr on 2005/1/12 16:26:59 as a matter of protection, XOOPS blocks any INSERT, UPDATE, or DELETE queries if the page was accessed via a GET request. Only pages accessed via a POST request (a form submission) can modify the database. |
| Re: My own module |
| by ejuden01 on 2005/1/12 15:47:21 When I do mine, I use sprintf: le="color: #000000"><?php $sql = sprintf("INSERT INTO %s VALUES (%s, %u)", $xoopsDB->prefix("cervex_config"), 'config', 1); $xoopsDB->query($sql);
|