08.11.2016, 07:57
Код:
cache_get_value_int(row, column_name, &destination);
Example, you have a query that returns these 2 rows.
Код:
+--------+----------+ | id | name | <!---- column/fields +--------+----------+ | 1 | Fineman | <!---- row 0 | 2 | Finemann | <!---- row 1 +--------+----------+ new value; cache_get_value_int(0, "id", value); // This code will assign the value from "id" column at row 0 to "value" variable printf("%d", value); // Output will be 1 cache_get_value_int(1, "id", value); // This code will assign the value from "id" column at row 1 to "value" variable printf("%d", value); // Output will be 2