Knowledgebase to the rescue!
The PDO library (I recommend this one)
https://www.php.net/manual/en/book.pdo.php