dbSearchStrGoAhead WebServer APIGoAhead EMF

Synopsis

Search for a string in a given column.

Prototype

 #include "emfdb.h"

 int dbSearchStr(int did, 
     char_t* table, 
     char_t* column, 
     char_t* value, 
     int flags); 

Parameters

diddatabase identifier
tablename of the table
columnname of the column of the table to search
valuestring to search for
flagsunused, provided for compatibility with earlier versions

Description

The row id returned by this function can be used by the various dbRead and dbWrite functions.

Return Value

dbSearchStr returns the row id of the found record if successful, or -1 if an error.

Example

int nCheck = dbSearchStr(0, T("USERS"), T("USER"), T("misterripley"), 0); 

See Also

dbReadStr(), dbWriteStr()