connectionDb.php 592 B

1234567891011121314151617181920212223242526
  1. <?php
  2. $dbname = "f.db";
  3. $db = new SQLite3('db/'.$dbname);
  4. if (!$db) {
  5. die("db not create ....");
  6. }else{
  7. //echo "Create Database successfully.....";
  8. }
  9. //$customers = $db->query("SELECT * FROM customer LEFT JOIN vehicle ON customer.id=vehicle.customer_id");
  10. //$success = $db->exec("UPDATE customer SET name='Red Star Ko Kaung Myat Sein',credit_sale=0 WHERE id=3");
  11. // while ($row = $customers->fetchArray()) {
  12. // print_r($row);
  13. // }
  14. //echo $db->lastErrorMsg()."<br>";
  15. // if ($success===TRUE) {
  16. // echo "OK";
  17. // }else{
  18. // echo "Not OK";
  19. // }
  20. ?>