I keep inserting data into the table t1 by keeping to refresh the browser. After inserting around 30 records, returns me with an error 103.
<?php
function string($s, $quote = FALSE)
{
if ($s === NULL) return 'NULL';
$r = sqlite_escape_string($s);
if ($quote) return "'".$r."'";
return $r;
}
if ($db = sqlite_open('fs.db', 0666, $sqliteerror))
{
$sqlCreate = "create table t1 (id char(13) NOT NULL,path char(255) NOT NULL,PRIMARY KEY (id))";
$id = uniqid("");
$p = "hellovimal";
$prevsql = sprintf("INSERT INTO t1 (id, path) VALUES (%s,%s)",string($id, TRUE), string($p, TRUE));
$result = sqlite_query( $prevsql,$db, SQLITE_NUM, $err);
}
else
{
die($sqliteerror);
}
Here is the screenshot
Why such an error occur after inserting around 35 records and how i can fix it ?