mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
Corrections to comments in PDO construct examples (#3287)
This commit is contained in:
committed by
GitHub
parent
d041509186
commit
a1f229dc3e
@@ -126,7 +126,7 @@
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* Connect to a MySQL database using driver invocation */
|
||||
|
||||
$dsn = 'mysql:dbname=testdb;host=127.0.0.1';
|
||||
$user = 'dbuser';
|
||||
$password = 'dbpass';
|
||||
@@ -157,7 +157,7 @@ odbc:DSN=SAMPLE;UID=john;PWD=mypass
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* Connect to an ODBC database using driver invocation */
|
||||
|
||||
$dsn = 'uri:file:///usr/local/dbconnect';
|
||||
$user = '';
|
||||
$password = '';
|
||||
@@ -181,7 +181,7 @@ pdo.dsn.mydb="mysql:dbname=testdb;host=localhost"
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* Connect to an ODBC database using an alias */
|
||||
|
||||
$dsn = 'mydb';
|
||||
$user = '';
|
||||
$password = '';
|
||||
|
||||
Reference in New Issue
Block a user