Mercurial > garten
comparison db.h @ 4:32c4212f05d9
less verbosity on queries; activation of weather
author | meillo@marmaro.de |
---|---|
date | Wed, 14 May 2008 21:10:11 +0200 |
parents | 831599184108 |
children | 176ee28e7464 |
comparison
equal
deleted
inserted
replaced
3:0c19ad487f02 | 4:32c4212f05d9 |
---|---|
31 | 31 |
32 void db_query(char* query) { | 32 void db_query(char* query) { |
33 int error; | 33 int error; |
34 /* send SQL query */ | 34 /* send SQL query */ |
35 error = mysql_query(conn, query); | 35 error = mysql_query(conn, query); |
36 printf("query: %s\nerror: %d / %d\n", query, error, mysql_errno(conn)); | 36 /*printf("query: %s\nerror: %d / %d\n", query, error, mysql_errno(conn));*/ |
37 if (error != 0) { | 37 if (error != 0) { |
38 fprintf(stderr, "E: %s\n", mysql_error(conn)); | 38 fprintf(stderr, "E: %s\n", mysql_error(conn)); |
39 } | 39 } |
40 } | 40 } |