last help im newbi with sqlite .. how can i translate this to sqlite3 :
<?php
session_start();
ob_start();
$host="localhost"; // Host name
$username="root"; // Mysql username
$db_name="home"; // Database name
$tbl_name="key"; // Table name
mysql_connect("$host", "$username")or die("Cannot connect to MySQL database.");
mysql_select_db("$db_name")or die("MySQL database unavailable.");
$password=$_POST['password'];
$confirm=$_POST['confirm'];
if ($password != $confirm) {
header("location:error.html");
break;
}
mysql_query("INSERT INTO keys(password, confirm) VALUES('$password', '$confirm');");
echo "Updating ... $password";
sleep(6);
header("location:updating.html");
ob_end_flush();
?>