note 31652 added to function.odbc-field-name

From: Date: Tue, 29 Apr 2003 13:12:31 +0000
Subject: note 31652 added to function.odbc-field-name
Groups: php.notes 
Request: Send a blank email to php-notes+get-47241@lists.php.net to get a copy of this message
Example: function field name. $Link_ID = odbc_connect("DSN", "user", "pass"); $query = "SELECT * FROM products"; $Query_ID = odbc_exec($Link_ID, $query); while($field = $field_name($Query_ID )) { echo("Field: $field<br />\n"); } --------------------- function field_name($PrQuery_ID) { if($Column < odbc_num_fields($PrQuery_ID)) { $Column += 1; $FieldName = odbc_field_name($PrQuery_ID, $Column); return $FieldName; } else { return 0; } } -- http://www.php.net/manual/en/function.odbc-field-name.php http://master.php.net/manage/user-notes.php?action=edit+31652 http://master.php.net/manage/user-notes.php?action=delete+31652 http://master.php.net/manage/user-notes.php?action=reject+31652

« previous php.notes (#47241) next »