From afd947e79ae99fa281f1a82ef0632999f509f344 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 24 Aug 2005 11:13:06 +0000 Subject: [PATCH] Use preferred comment style in examples. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@194305 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pdo/functions/PDO-construct.xml | 8 ++++---- .../pdo/functions/PDOStatement-closeCursor.xml | 14 +++++++------- reference/pdo/functions/PDOStatement-rowCount.xml | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/reference/pdo/functions/PDO-construct.xml b/reference/pdo/functions/PDO-construct.xml index 3d79c55816..855d159b0b 100644 --- a/reference/pdo/functions/PDO-construct.xml +++ b/reference/pdo/functions/PDO-construct.xml @@ -1,5 +1,5 @@ - + PDO::__construct @@ -130,7 +130,7 @@ - + @@ -101,22 +101,22 @@ do { 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(); ?> ]]> diff --git a/reference/pdo/functions/PDOStatement-rowCount.xml b/reference/pdo/functions/PDOStatement-rowCount.xml index c2b6588a09..87df94dd3e 100644 --- a/reference/pdo/functions/PDOStatement-rowCount.xml +++ b/reference/pdo/functions/PDOStatement-rowCount.xml @@ -1,5 +1,5 @@ - + @@ -76,16 +76,16 @@ Deleted 9 rows. $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."; }