Answer the question
In order to leave comments, you need to log in
How to properly work with PHP PDO?
Hello! I'm reading a book on PHP and SQL (by David Sklar, page 201) which included this code:
$db = new PDO('sqlite:/tmp/restaurant.db'); //(1)
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION)
$q = $db->exec("CREATE TABLE dishes (
dish_id INT,
dish_name VARCHAR(255) //(2)
//ну и так далее
)");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question