Hướng dẫn dùng field flags trong PHP
(PHP 4, PHP 5) mysql_field_flags — Get the flags associated with the specified field in a result Descriptionmysql_field_flags(resource Parametersresult The result resource that is being evaluated. This result comes from a call to mysql_query(). field_offset The numerical field offset. The Return Values Returns a string of flags associated with the result or The following flags are reported, if your version of MySQL is current enough to support them: ExamplesExample #1 A mysql_field_flags() example
$flags; The above example will output something similar to: not_null primary_key auto_increment Array ( [0] => not_null [1] => primary_key [2] => auto_increment ) Notes
See Also
amir at scrounch dot com ¶ 19 years ago
pike-php at kw dot nl ¶ 17 years ago
play at arcadevillage dot com ¶ 13 years ago
simone dot t at betisgroup dot com ¶ 19 years ago
jakemsr at jakemsr dot com ¶ 19 years ago
bomas at cities-of-faith dot com ¶ 16 years ago
buttrose at unimelb dot edu dot au ¶ 17 years ago
justin DOT flavin AT ntlworld DOT com ¶ 19 years ago
jurgen at alienguitar dot com ¶ 21 years ago
|