This shows you the differences between two versions of the page.
teaching:php:database [2020/04/19 18:53] admin created |
teaching:php:database [2020/04/19 22:02] (current) admin |
||
---|---|---|---|
Line 11: | Line 11: | ||
$connection_string = "mysql:host=$host;dbname=$dbname;port=$port;charset=$charset"; | $connection_string = "mysql:host=$host;dbname=$dbname;port=$port;charset=$charset"; | ||
- | $db_settings = array(PDO::ATTR_ERRMODE => PDO::ERRMOD_WARNING, | + | $db_settings = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING, |
PDO::ATTR_PERSISTENT => true); | PDO::ATTR_PERSISTENT => true); | ||