dbWriteStrGoAhead WebServer APIGoAhead EMF

Synopsis

Updates string values to the designated cell.

Prototype

 #include "emfdb.h"

 int dbWriteStr(int did, char_t* table, char_t* column, 
     int row, char_t* s); 

Parameters

diddatabase id returned when the database was created
tabletable name in the database
columncolumn name in the table
rowrow number in the column
sstring value to be written to the cell

Description

Write a string to the database.

Note: The database will automatically insert a backslash in front of any double quote character written to a database cell. This may result in the value returned by dbRead to be different from the value written with dbWrite.

Return Value

dbWriteStr returns 0 on successful write, or -1 if otherwise.

Example

dbWriteStr(dbid, TABLE, T("description"), row, T("Foosball Master")) 

See Also

dbWriteStr, dbWriteInt