cvs: phpdoc-cs /reference/mysql/functions mysql-field-name.xml mysql-field-type.xml

From: Date: Thu, 17 Apr 2003 15:55:39 +0000
Subject: cvs: phpdoc-cs /reference/mysql/functions mysql-field-name.xml mysql-field-type.xml
Groups: php.doc.cs 
Request: Send a blank email to doc-cs+get-50@lists.php.net to get a copy of this message
costra Thu Apr 17 11:55:39 2003 EDT Modified files: /phpdoc-cs/reference/mysql/functions mysql-field-name.xml mysql-field-type.xml Log: update from en Index: phpdoc-cs/reference/mysql/functions/mysql-field-name.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-field-name.xml:1.4 phpdoc-cs/reference/mysql/functions/mysql-field-name.xml:1.5 --- phpdoc-cs/reference/mysql/functions/mysql-field-name.xml:1.4 Sat Jun 8 11:48:22 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-field-name.xml Thu Apr 17 11:55:39 2003 @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- splitted from ./cs/functions/mysql.xml, last change in rev 1.1 --> -<!-- last change to 'mysql-field-name' in en/ tree in rev 1.2 --> +<!-- EN-Revision: 1.3 Maintainer: costra Status: ready --> <refentry id="function.mysql-field-name"> <refnamediv> <refname>mysql_field_name</refname> @@ -36,13 +35,14 @@ <title><function>mysql_field_name</function> pøíklad</title> <programlisting role="php"> <![CDATA[ -// Tabulka &quot;uzivatele&quot; má následující tøi sloupce:: -// uziv_id -// jmeno -// heslo. -$link = mysql_connect('localhost', $uzivatel, "tajne"); +/* Tabulka &quot;uzivatele&quot; má následující tøi sloupce:: + * uziv_id + * jmeno + * heslo. + */ + $link = mysql_connect('localhost', $uzivatel, "tajne"); mysql_select_db($dbjmeno, $link) - or die("Nelze se pøipojit k databázi $dbjmeno"); + or die("Nelze se spojit s$dbjmeno: " . mysql_error()); $res = mysql_query("select * from uzivatele", $link); echo mysql_field_name($res, 0) . "\n"; Index: phpdoc-cs/reference/mysql/functions/mysql-field-type.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-field-type.xml:1.4 phpdoc-cs/reference/mysql/functions/mysql-field-type.xml:1.5 --- phpdoc-cs/reference/mysql/functions/mysql-field-type.xml:1.4 Sat Jun 8 11:48:22 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-field-type.xml Thu Apr 17 11:55:39 2003 @@ -1,11 +1,10 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- splitted from ./cs/functions/mysql.xml, last change in rev 1.1 --> -<!-- last change to 'mysql-field-type' in en/ tree in rev 1.2 --> +<!-- EN-Revision: 1.5 Maintainer: costra Status: ready --> <refentry id="function.mysql-field-type"> <refnamediv> <refname>mysql_field_type</refname> <refpurpose> - Zjistí typ sloupce + Vrací typ specifikovaného sloupce. </refpurpose> </refnamediv> <refsect1> @@ -23,14 +22,15 @@ <function>mysql_field_name</function>. Argumenty jsou toto¾né, pouze namísto jméno vrací typ sloupce. Sloupec mù¾e být typu: "int", "real", "string", "blob", a dal¹í detailnì popsané v <ulink url="&url.mysql.docs;">MySQL -dokumentaci</ulink>. <example> +dokumentaci</ulink>. + <example> <title>MySQL typy sloupcù</title> <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_uziv", "mysql_heslo"); mysql_select_db("mysql"); - $result = mysql_query("SELECT jmeno, cislo, poznamka, typ FROM func"); + $result = mysql_query("SELECT * FROM func"); $fields = mysql_num_fields($result); $rows = mysql_num_rows($result); $table = mysql_field_table($result, 0);

« previous php.doc.cs (#50) next »