Web hosting directory - CHAPTER 22 SQLITE sqlite_field_name() string sqlite_field_name (resource

CHAPTER 22 SQLITE sqlite_field_name() string sqlite_field_name (resource result, int field_index) The sqlite_field_name() function returns the name of the field located at the index offset field_index found in the result set. For example: “; echo “Field name found at offset #1: “.sqlite_field_name($results,1).”
“; echo “Field name found at offset #2: “.sqlite_field_name($results,2).”
“; sqlite_close($sqldb); ?> This returns: Field name found at offset #0: empid Field name found at offset #1: name Field name found at offset #2: title As is the case with all numerically indexed arrays, the offset starts at 0, not 1. sqlite_num_fields() int sqlite_num_fields (resource result_set) The sqlite_num_fields() function returns the number of columns located in the result_set. For example: “; sqlite_close($sqldb); ?> This returns: Total fields returned: 3 sqlite_num_rows() int sqlite_num_rows (resource result_set)
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Leave a Reply