mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Fixing example. sqlite-query need two args.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@132800 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d0d26a60e3
commit
e78cf747f7
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.sqlite-open">
|
||||
<refnamediv>
|
||||
<refname>sqlite_open</refname>
|
||||
|
@ -44,9 +44,9 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) {
|
||||
sqlite_query('CREATE TABLE foo (bar varchar(10))');
|
||||
sqlite_query("INSERT INTO foo VALUES ('fnord')");
|
||||
$result = sqlite_query('select bar from foo');
|
||||
sqlite_query($db,'CREATE TABLE foo (bar varchar(10))');
|
||||
sqlite_query($db,"INSERT INTO foo VALUES ('fnord')");
|
||||
$result = sqlite_query($db,'select bar from foo');
|
||||
var_dump(sqlite_fetch_array($result));
|
||||
} else {
|
||||
die ($sqliteerror);
|
||||
|
|
Loading…
Reference in a new issue