From 767d318cb711ede85dcc3fd34fb1640d3b39ff2b Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Thu, 13 Jan 2005 12:54:17 +0000 Subject: [PATCH] fix example and use screen git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177119 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mysql/functions/mysql-field-flags.xml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/reference/mysql/functions/mysql-field-flags.xml b/reference/mysql/functions/mysql-field-flags.xml index 6f3a67901a..4ad612a445 100644 --- a/reference/mysql/functions/mysql-field-flags.xml +++ b/reference/mysql/functions/mysql-field-flags.xml @@ -1,5 +1,5 @@ - + @@ -40,13 +40,16 @@ if (!$result) { echo 'Could not run query: ' . mysql_error(); exit; } -$flags = mysql_field_flags($result, 'id'); +$flags = mysql_field_flags($result, 0); -print $flags; +echo $flags; print_r(explode(' ', $flags)); - -/* Output will look similar to: - +?> +]]> + + &example.outputs.similar; + + primary_key [2] => auto_increment ) - -*/ ?> ]]> - +