1
kalamata
Can someone explain this?
  • 2006/6/13 12:22

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I made a small modification to the code for the xfguestbook module (will post it as soon as I am sure that it works) and run into the following problem that I can not understand:

I want to delete all modules waiting for validation, so I created a duplicate of the delete routine and call it from the main menu. What is happening is that if I use the code in delete

if (!$result = $this->db->query($sql)) {
echo "Problem with deletion!", mysql_errno();
return false;
}
to perform the deletion it will return an error number of zero, whilst if I run it the traditional way:

mysql_query($sql)

this works fine without any problems at all.

I should note here that when I use the code of delete in XOOPS then this error is not coming up.

From a search online, I found that an error number of zero means that either the database is down or that it reached its connection limit. Neither of these is true in my case.
Any offeres for explaining this behaviour?

Thanks,
George

Login

Who's Online

110 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 110


more...

Donat-O-Meter

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

Latest GitHub Commits