Answer the question
In order to leave comments, you need to log in
Books on php describing how to work with PDO and SQLite in Russian?
Downloaded a bunch of php books already. But in all the standard set: php + mySql.
Moreover, the connection is described through mysql_lalala, or at most through mysqli
But I understand that PDO is the future. Plus, ideally, a bunch of PDO + SQLite.
Thanks in advance for specific answers.
Answer the question
In order to leave comments, you need to log in
You don't need a book on SQLite if you plan to use PDO. Where there is PHP, there is always a normal database, and it makes no sense to use a toy one.
There is no need for a book on PDO as it is a very small API, literally 5 functions.
All you need to know about PDO:
1. Any variables should only get into the request through a placeholder. Therefore, all queries that involve variables must be executed through prepare / execute: first, the query is prepared through prepare (), and placeholders should be placed instead of variables, such as ? or such :name . And variables are then transferred through execute.
$pdo = new PDO ( ... );
$stmt = $pdo->prepare("SELECT * FROM users WHERE id=?");
$stmt->execute([$_GET['id']]);
$user = $stmt->fetch();
PDO is not the future, PDO is the present, or even the past, because now most people use ORMs (which are implemented on top of PDO)
On PDO, you can watch this series https://www.youtube.com/watch?v=QtCdk459NFg
PDO + SQLite https://www.youtube.com/watch?v=3hJC09uNTxE
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question