CVS update: php3/doc/functions
| From: | eschmid | Date: | Sun, 13 Sep 1998 17:48:08 +0000 |
| Subject: | CVS update: php3/doc/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1033@lists.php.net to get a copy of this message | ||
Date: Sunday September 13, 1998 @ 13:48
Author: eschmid
Update of /repository/php3/doc/functions
In directory asf:/u2/tmp/cvs-serv19908/doc/functions
Modified Files:
dbase.sgml
Log Message:
More corrections.
Index: php3/doc/functions/dbase.sgml
diff -c php3/doc/functions/dbase.sgml:1.5 php3/doc/functions/dbase.sgml:1.6
*** php3/doc/functions/dbase.sgml:1.5 Fri Sep 11 09:34:40 1998
--- php3/doc/functions/dbase.sgml Sun Sep 13 13:48:08 1998
***************
*** 41,50 ****
<paramdef>array <parameter>fields</parameter></paramdef>
</funcsynopsis>
<para>
! The <parameter>fields</parameter> parameter is an array of arrays, each array
! describing the format of one field in the database. Each
! field consists of a name, a character indicating the
! field type, a length, and a precision.
<para>
The types of fields available are:
<variablelist>
--- 41,50 ----
<paramdef>array <parameter>fields</parameter></paramdef>
</funcsynopsis>
<para>
! The <parameter>fields</parameter> parameter is an array of
! arrays, each array describing the format of one field in the
! database. Each field consists of a name, a character
! indicating the field type, a length, and a precision.
<para>
The types of fields available are:
<variablelist>
***************
*** 83,106 ****
<example>
<title>Creating a dBase database file</title>
! <programlisting>
! // "database" name
! $dbname = "/tmp/test.dbf";
! // database "definition"
! $def =
array(
! array("date", "D"),
! array("name", "C", 50),
! array("age", "N", 3, 0),
! array("email", "C", 128),
! array("ismember", "L")
);
! // creation
! if (!dbase_create($dbname, $def))
! print "<strong>Error!</strong>";
! </programlisting></example>
</refsect1>
</refentry>
--- 83,112 ----
<example>
<title>Creating a dBase database file</title>
! <programlisting role=php>
! // "database" name
!
! $dbname = "/tmp/test.dbf";
!
! // database "definition"
!
! $def =
array(
! array("date", "D"),
! array("name", "C", 50),
! array("age", "N", 3, 0),
! array("email", "C", 128),
! array("ismember", "L")
);
+
+ // creation
+
+ if (!dbase_create($dbname, $def))
+ print "<strong>Error!</strong>";
! </programlisting>
! </example>
</refsect1>
</refentry>
***************
*** 241,248 ****
<programlisting>
$rec = dbase_get_record($db, $recno);
$nf = dbase_numfields($db);
! for ($i=0; $i< $nf; $i++) {
! print $rec[$i]."<br>\n";
}
</programlisting></example>
</refsect1>
--- 247,254 ----
<programlisting>
$rec = dbase_get_record($db, $recno);
$nf = dbase_numfields($db);
! for ($i=0; $i < $nf; $i++) {
! print $rec[$i]."<br>\n";
}
</programlisting></example>
</refsect1>
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net