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