Commit | Line | Data |
---|---|---|
04a13a6f | 1 | #define USE_LIBRARY_MYSQL |
2 | #include "cll1.h" | |
3 | ||
4 | program | |
5 | { | |
6 | MYSQL_ROW row; | |
7 | ||
8 | if(mysql_connect("localhost","root","","pokus")) | |
9 | { | |
10 | for_mysql_query_results(row,"SELECT id,str FROM pokus") | |
11 | printf("id=%s str=%s\n", row[0], row[1]); | |
12 | } | |
13 | else | |
14 | puts("Can't connect to database!"); | |
15 | } |