I m 采用LQ3, 并用KLQ3级设备建造。 下面的法典没有按照我所熟悉的其他神秘等级来设想。 exec
方法应当归还。 然而,从我所能看到的角度来看,这似乎没有。
$udb = new SQLite3( app.sqlite );
if($udb->exec("DELETE FROM users WHERE id = $del") != FALSE)
$message = Deleted User ;
else
$message = Could not delete the user. ;
I would expect that if the row with that ID did not exist, the query would return false or 0 or 0 . None of these are accurate. In fact, I can t figure out what the function is returning at all.
Could someone help out with what this error checking if
block should look like?