1
farley
Error: Database update not allowed during processing of a GET request
  • 2005/5/27 23:05

  • farley

  • Just popping in

  • Posts: 4

  • Since: 2005/5/6 2


I am writing a module and need to have the user delete records in the database.

I created a link to a function to delete the record.

I checked the generated sql to delete the record.

my code is

<hr>$sql = "DELETE FROM ".$xoopsDB->prefix("weddingadminsupplier")." WHERE code='".$code."'" ;
if ($xoopsDB->query($sql))

<hr>etc....

The following error is generated.

Database update not allowed during processing of a GET request

Any ideas as to what I am doing wrong.


TIA
Farley

2
Catzwolf
Re: Error: Database update not allowed during processing of a GET request
  • 2005/5/28 2:05

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Use:

if ($xoopsDB->queryF($sql))

3
farley
Re: Error: Database update not allowed during processing of a GET request
  • 2005/5/29 1:19

  • farley

  • Just popping in

  • Posts: 4

  • Since: 2005/5/6 2


Thanks.. That was it...

Login

Who's Online

232 user(s) are online (163 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

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

Latest GitHub Commits