I've spent the last couple of days grappling wit the simple concept of using a php script as Save button. When pressed from a webpage the button will INSERT data from table A to table B then delete table A and redirect to back to my main index.html.
<?php
try {
$db = new PDO('sqlite:/srv/db/data.db');
}
$db->exec("INSERT * INTO Archive FROM resultstbl");
$db->exec("DELETE * FROM resultstbl")
unset($db);
?>
So far I could use some help with this PHP query, as well as any guidance.