Hello! Read a book on PHP and SQL (by David Sklar, page 201), which was given code like this:
$db = new PDO('sqlite:/tmp/restaurant.db'); //(1)
$q = $db->exec("CREATE TABLE dishes (
dish_name VARCHAR(255) //(2)
//and so on
Here are my questions:
(1) - what is this way 'sqlite:/tmp/restaurant.db'? The book mentions nothing about these files. It is a path that specifies where to write the generated database? Or what is it? How to do the same with sql (not with sqlite)?
This is the way to Baja data. But how to create it? How to make so that this way was correct?