SQLite "database table is locked" error
1. Is there a better place to ask this question?
2. If not:
I read that reading and writing in a sqlite table cannot be done 'at the same time' and that is why I get this error.
My code goes something like this:
How would I avoid the error?
1. Is there a better place to ask this question?
2. If not:
I read that reading and writing in a sqlite table cannot be done 'at the same time' and that is why I get this error.
My code goes something like this:
Code:
$query="SELECT * FROM (bestanden) WHERE naam='$basename' ORDER BY naam ;";
$result=$sql->unbufferedQuery($query);
$row=$result->fetch(SQLITE_ASSOC);
[...]
$query4="UPDATE bestanden SET datum='$fd' WHERE naam='$basename' ";
$result4=$sql->query($query4);
How would I avoid the error?