mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
document def, user notes;correct example, localhost:port is bogus
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@197650 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c2cd557ccc
commit
631344042f
1 changed files with 8 additions and 2 deletions
|
@ -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>
|
||||
|
@ -56,6 +56,11 @@
|
|||
table - name of the table the column belongs to
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
def - default value of the column
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
max_length - maximum length of the column
|
||||
|
@ -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 @@ numeric: $meta->numeric
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue