cvs: phpdoc /en/reference/mysql/functions mysql-fetch-field.xml

From: Date: Wed, 05 Oct 2005 13:48:28 +0000
Subject: cvs: phpdoc /en/reference/mysql/functions mysql-fetch-field.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370460@lists.php.net to get a copy of this message
betz Wed Oct 5 09:48:28 2005 EDT Modified files: /phpdoc/en/reference/mysql/functions mysql-fetch-field.xml Log: document def, user notes;correct example, localhost:port is bogus http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml diff -u phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml:1.13 phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml:1.14 --- phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml:1.13 Thu Mar 31 02:47:25 2005 +++ phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml Wed Oct 5 09:48:24 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <refentry id="function.mysql-fetch-field"> <refnamediv> <refname>mysql_fetch_field</refname> @@ -58,6 +58,11 @@ </listitem> <listitem> <simpara> + def - default value of the column + </simpara> + </listitem> + <listitem> + <simpara> max_length - maximum length of the column </simpara> </listitem> @@ -118,7 +123,7 @@ <programlisting role="php"> <![CDATA[ <?php -$conn = mysql_connect('localhost:3306', 'user', 'password'); +$conn = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$conn) { die('Could not connect: ' . mysql_error()); } @@ -145,6 +150,7 @@ primary_key: $meta->primary_key table: $meta->table type: $meta->type +default: $meta->def unique_key: $meta->unique_key unsigned: $meta->unsigned zerofill: $meta->zerofill

« previous php.doc (#969370460) next »