1
happy
DELETE request problem.
  • 2004/11/29 13:16

  • happy

  • Just popping in

  • Posts: 2

  • Since: 2004/11/29


I have a problem with delete sql request.
$xoopsDB->query("DELETE FROM myprefix_mytable WHERE id='some_id'");
can't delete appropriate record.
$xoopsDB->errno() returns 0.
But it's Ok with SELECT, INSERT and UPDATE commands.
Permissions are Ok. I can successfully execute delete command
from the MySQL console tool under the XOOPS account.

Need help.

Xoops 2.0.6
MySQL 3.23.52

2
ackbarr
Re: DELETE request problem.

first off - does it work when using $xoopsDB->queryF?

If so, then the problem is that you were trying to delete something from the database in a GET request and not a POST request. XOOPS has built in db protections to prevent most attacks that come from GET requests.

If it does not work, turn on MySQL debugging in System -> Preferences -> General Settings, then try your action again. You should get a popup window detailing every query in the current page, and if any queries were unable to complete they will be displayed in red and containing the error message for that query.

3
happy
Re: DELETE request problem.
  • 2004/11/29 14:01

  • happy

  • Just popping in

  • Posts: 2

  • Since: 2004/11/29


It does work with queryF. Thanks for comments.

Login

Who's Online

306 user(s) are online (258 user(s) are browsing Support Forums)


Members: 0


Guests: 306


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits