dbAddRowGoAhead WebServer APIGoAhead EMF

Synopsis

Adds a row to a database table.

Prototype

 #include "emfdb.h"

 int dbAddRow(int did, char_t* table);

Parameters

diddatabase id returned from a previous dbOpen
tabletable name that will contain the row being added

Description

Adds and zeroes one row to the given database table.

Return Value

dbAddRow returns the row id of the new row upon success, or a negative number upon error.

Example

if ((rid = dbAdd(did, "detector")) < 0) { Error(wp,
	200, "Cant add a detector row");
	return;
}

See Also

dbDeleteRow, dbSetTableNrow