cAllDatabaseFields::GetIndexOf() - rstoetter/libsqlphp GitHub Wiki

Method GetIndexOf( )

 public   integer rstoetter\libsqlphp\cAllDatabaseFields::GetIndexOf(string $tablename, string $fieldname)

Returns the index of the fieldname $fieldname in the table $tablename

Example:

Arguments

  • $tablename string - <p>the name of the table</p>
  • $fieldname string - <p>the name of the field</p>

Returns

integer -1 if the field $fieldname in $tablename was not find, else the index