1
punches
UPDATE queries via xoopsDB
  • 2004/7/27 16:16

  • punches

  • Just popping in

  • Posts: 6

  • Since: 2004/7/12


I attempt to create a module and I use xoopsDB class to make queries against MySQL. The problem is that SELECT queries work ok and UPDATE (DELETE) queries do not work ok. I've found that UPDATE queries can work ok only if I try to use them in places where I handle data from forms. What should I do to make them work in general logic?

2
Dave_L
Re: UPDATE queries via xoopsDB
  • 2004/7/27 16:28

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The method query() can only be used for SELECT queries unless the request method is POST (as it normally is for a form submission). If you want to do a non-SELECT query where the request method is not POST, then use queryF() instead of query().

Login

Who's Online

388 user(s) are online (293 user(s) are browsing Support Forums)


Members: 0


Guests: 388


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