diff options
author | SVN Migration <svn@php.net> | 2004-06-07 14:23:46 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-06-07 14:23:46 +0000 |
commit | aff15d154d8c653126df64ef994aff2091745830 (patch) | |
tree | 709caec5580c75176e2bdc6de619c03501f2a8f1 /ext/pdo/pdo.php | |
parent | 6f4715622895dc77d06f094b4006a219b3bf8709 (diff) | |
download | php-git-php-5.0.0RC3.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php_5_0_0RC3'.php-5.0.0RC3
Diffstat (limited to 'ext/pdo/pdo.php')
-rwxr-xr-x | ext/pdo/pdo.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/ext/pdo/pdo.php b/ext/pdo/pdo.php deleted file mode 100755 index 78300d82b5..0000000000 --- a/ext/pdo/pdo.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - -//$x = new PDO("oci:dbname=hostname", 'php', 'php'); -$x = new PDO("odbc:ram", 'php', 'php', array(PDO_ATTR_AUTOCOMMIT => 0)); -$stmt = $x->prepare("select NAME, VALUE from test where value like ?"); - -$the_name = 'bar%'; -$stmt->execute(array($the_name)) or die("failed to execute!"); -$stmt->bindColumn('VALUE', $value); - -while ($row = $stmt->fetch()) { - echo "name=$row[NAME] value=$row[VALUE]\n"; - echo "value is $value\n"; - echo "\n"; -} - -echo "Let's try an update\n"; - -$stmt = $x->prepare("INSERT INTO test (NAME, VALUE) VALUES (:name, :value)"); - -$stmt->bindParam(":name", $the_name, PDO_PARAM_STR, 32); -$stmt->bindParam(":value", $the_value, PDO_PARAM_STR, 32); - -for ($i = 0; $i < 4; $i++) { - $the_name = "foo" . rand(); - $the_value = "bar" . rand(); - - if (!$stmt->execute()) { - break; - } -} - -echo "All done\n"; - -?> |