dbs Wed Aug 24 07:13:07 2005 EDT
Modified files: /phpdoc/en/reference/pdo/functions PDO-construct.xml PDOStatement-closeCursor.xml PDOStatement-rowCount.xml Log: Use preferred comment style in examples. http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDO-construct.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc/en/reference/pdo/functions/PDO-construct.xml diff -u phpdoc/en/reference/pdo/functions/PDO-construct.xml:1.13 phpdoc/en/reference/pdo/functions/PDO-construct.xml:1.14 --- phpdoc/en/reference/pdo/functions/PDO-construct.xml:1.13 Thu Aug 11 22:03:49 2005 +++ phpdoc/en/reference/pdo/functions/PDO-construct.xml Wed Aug 24 07:13:06 2005 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <refentry id="function.PDO-construct"> <refnamediv> <refname>PDO::__construct</refname> @@ -130,7 +130,7 @@ <programlisting role="php"> <![CDATA[ <?php -// Connect to an ODBC database using driver invocation +/* Connect to an ODBC database using driver invocation */ $dsn = 'mysql:dbname=testdb;host=127.0.0.1'; $user = 'dbuser'; $password = 'dbpass'; @@ -165,7 +165,7 @@ <programlisting role="php"> <![CDATA[ <?php -// Connect to an ODBC database using driver invocation +/* Connect to an ODBC database using driver invocation */ $dsn = 'uri:file:///usr/local/dbconnect'; $user = ''; $password = ''; @@ -193,7 +193,7 @@ <programlisting role="php"> <![CDATA[ <?php -// Connect to an ODBC database using an alias +/* Connect to an ODBC database using an alias */ $dsn = 'mydb'; $user = ''; $password = ''; http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-closeCursor.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc/en/reference/pdo/functions/PDOStatement-closeCursor.xml diff -u phpdoc/en/reference/pdo/functions/PDOStatement-closeCursor.xml:1.2 phpdoc/en/reference/pdo/functions/PDOStatement-closeCursor.xml:1.3 --- phpdoc/en/reference/pdo/functions/PDOStatement-closeCursor.xml:1.2 Sun Jul 10 23:28:34 2005 +++ phpdoc/en/reference/pdo/functions/PDOStatement-closeCursor.xml Wed Aug 24 07:13:06 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. --> <refentry id="function.PDOStatement-closeCursor"> <refnamediv> @@ -101,22 +101,22 @@ <programlisting role="php"> <![CDATA[ <?php -// Create a PDOStatement object +/* Create a PDOStatement object */ $stmt = $dbh->prepare('SELECT foo FROM bar'); -// Create a second PDOStatement object +/* Create a second PDOStatement object */ $stmt = $dbh->prepare('SELECT foobaz FROM foobar'); -// Execute the first statement +/* Execute the first statement */ $stmt->execute(); -// Fetch only the first row from the results +/* Fetch only the first row from the results */ $stmt->fetch(); -// The following call to closeCursor() may be required by some drivers +/* The following call to closeCursor() may be required by some drivers */ $stmt->closeCursor(); -// Now we can execute the second statement +/* Now we can execute the second statement */ $otherStmt->execute(); ?> ]]> http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-rowCount.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/reference/pdo/functions/PDOStatement-rowCount.xml diff -u phpdoc/en/reference/pdo/functions/PDOStatement-rowCount.xml:1.7 phpdoc/en/reference/pdo/functions/PDOStatement-rowCount.xml:1.8 --- phpdoc/en/reference/pdo/functions/PDOStatement-rowCount.xml:1.7 Fri May 20 14:51:02 2005 +++ phpdoc/en/reference/pdo/functions/PDOStatement-rowCount.xml Wed Aug 24 07:13:06 2005 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. --> <refentry id="function.PDOStatement-rowCount"> <refnamediv> @@ -76,16 +76,16 @@ $sql = "SELECT COUNT(*) FROM fruit WHERE calories > 100"; if ($res = $conn->query($sql)) { - // Check the number of rows that match the SELECT statement + /* Check the number of rows that match the SELECT statement */ if ($res->fetchColumn() > 0) { - // Issue the real SELECT statement and work with the results + /* Issue the real SELECT statement and work with the results */ $sql = "SELECT name FROM fruit WHERE calories > 100"; foreach ($conn->query($sql) as $row) { print "Name: " . $row['NAME'] . "\n"; } } - // No rows matched -- do something else + /* No rows matched -- do something else */ else { print "No rows matched the query."; }