File size: 398 Bytes
4e26128 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ```php
<?php
$host = 'localhost';
$dbname = 'biometric_db';
$username = 'root';
$password = '';
try {
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $username, $password);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
die("Database connection failed: " . $e->getMessage());
}
?>
```
3. Here's the fingerprint saving script: |