From d8b98aa297f68e579b8ec98ee12d98fc64315318 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 12 Apr 2007 18:07:17 +0000 Subject: Adding numaffectedrows() and insertid() into the SQL class. Also having a slightly better error support. Need more work on that though. --- include/SQL.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/SQL.h b/include/SQL.h index 4385a6d..5cccd1c 100644 --- a/include/SQL.h +++ b/include/SQL.h @@ -15,10 +15,12 @@ class SQLConnection : public Base { int numrows(); int numfields(); AssocArray fetchrow(); + int numaffectedrows(); + int insertid(); private: MYSQL con; MYSQL_RES * res; - int nr, nf; + int nr, nf, na, ii; MYSQL_FIELD * fields; }; -- cgit v1.2.3