commit version 1.1

This commit is contained in:
2025-08-16 06:45:14 -04:00
commit b960c387e5
12 changed files with 576 additions and 0 deletions

19
includes/DB_SQLITE.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
//SQLite3 Database Connection - Version 1.0
//Debug remove $GLOBALS from DBqerry and DBresult
function DBconnect($database){return new SQLite3($database, SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE);}
function DBclose($link){$link->close();}
function DBquery($link,$query){return $link->query($query);}
function DBnum_rows($result){$n=0; while($result->fetchArray()){$n++;} return $n;}
function DBresult($result,$i=0,$field=0){
$n=0;
$value = false;
while ($row = $result->fetchArray()) {
if($n==$i){if(isset($row[$field])){$value=$row[$field];}}
$n++;
}
return $value;
}
?>