mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
the OO method is 'queryExec' not 'exec'
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@194966 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
227cadb313
commit
871e486aab
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id="function.sqlite-exec">
|
||||
<refnamediv>
|
||||
<refname>sqlite_exec</refname>
|
||||
|
@ -23,7 +23,7 @@
|
|||
<classsynopsis>
|
||||
<ooclass><classname>SQLiteDatabase</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>exec</methodname>
|
||||
<type>bool</type><methodname>queryExec</methodname>
|
||||
<methodparam><type>string</type><parameter>query</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
|
@ -103,7 +103,7 @@ if (!$query) {
|
|||
<![CDATA[
|
||||
<?php
|
||||
$dbhandle = new SQLiteDatabase('mysqlitedb');
|
||||
$query = $dbhandle->exec("UPDATE users SET email='jDoe@example.com' WHERE username='jDoe'");
|
||||
$query = $dbhandle->queryExec("UPDATE users SET email='jDoe@example.com' WHERE username='jDoe'");
|
||||
if (!$query) {
|
||||
exit('Error in query.');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue