Posted by Milan Krejci on 07/26/07 11:31
function odstran($jmeno) {
$this->res=&$this->mdb2->query("DELETE FROM auth WHERE
username='".$jmeno."' LIMIT 1");
if (PEAR::isError($this->res)) die($this->res->getMessage());
//var_dump($this->res);
//echo $this->res->numRows();
//if ($this->res->numRows()==1) echo ('<p>Uzivatel odstranen</p>');
////////////////////BUG ^^^
}
it should return 0 or 1 but it is NULL. the record has been deleted
allright but numRows() doesn't return anything even if nothing has been
deleted.
Navigation:
[Reply to this message]
|