Skip to content

Commit 3d3f978

Browse files
authored
Update README.md
Added links
1 parent dfa4766 commit 3d3f978

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CoD4X MySQL support for GSC. Continious connection up to 4 databases supported.
1111

1212
#### `mysql_real_connect(<str host>, <str user>, <str passwd>, <str db>, [int port=3306])`
1313

14-
Connects to a database, returns handle to database connection. If you want to connect to multiple databases, you can call this function up to 4 times. Do not forget to close connection with `mysql_close()`. TODO: link here!
14+
Connects to a database, returns handle to database connection. If you want to connect to multiple databases, you can call this function up to 4 times. Do not forget to close connection with [mysql_close()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_closehandle). TODO: link here!
1515

1616
If "localhost" passed as `host`, for *NIX OS will be changed to "127.0.0.1".
1717

@@ -28,31 +28,31 @@ Usage example: `mysql_close(handle);`
2828

2929
#### `mysql_query(<handle>, <str query>)`
3030

31-
Send a query to a database and saves the result for use in following functions. Must be called after `mysql_real_connect()`.
31+
Send a query to a database and saves the result for use in following functions. Must be called after [mysql_real_connect()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_real_connectstr-host-str-user-str-passwd-str-db-int-port3306).
3232

3333
Usage example: `mysql_query(handle, "SELECT * from users");`
3434

3535
#### `mysql_num_rows(<handle>)`
3636

37-
Returns the amount of rows received after latest query. Must be called after `mysql_real_connect()` and `mysql_query()`.
37+
Returns the amount of rows received after latest query. Must be called after [mysql_real_connect()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_real_connectstr-host-str-user-str-passwd-str-db-int-port3306) and [mysql_query()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_queryhandle-str-query).
3838

3939
Usage example: `rowsCount = mysql_num_rows(handle);`
4040

4141
#### `mysql_affected_rows(<handle>)`
4242

43-
Returns the amount of affected rows after latest query. Must be called after `mysql_real_connect()` and `mysql_query()`.
43+
Returns the amount of affected rows after latest query. Must be called after [mysql_real_connect()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_real_connectstr-host-str-user-str-passwd-str-db-int-port3306) and [mysql_query()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_queryhandle-str-query).
4444

4545
Usage example: `rowsCount = mysql_affected_rows(handle);`
4646

4747
#### `mysql_num_fields(<handle>)`
4848

49-
Returns number of fields in latest query result. Must be called after `mysql_real_connect()` and `mysql_query()`.
49+
Returns number of fields in latest query result. Must be called after [mysql_real_connect()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_real_connectstr-host-str-user-str-passwd-str-db-int-port3306) and [mysql_query()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_queryhandle-str-query).
5050

5151
Usage example: `fieldsCount = mysql_num_field(handle);`
5252

5353
#### `mysql_fetch_row(<handle>)`
5454

55-
Returns next row from latest query result as array. Array's keys are equal to column names and can be found with `getArrayKeys(<array>)`. An empty array returned if there's no more rows left. Must be called after `mysql_real_connect()` and `mysql_query()`.
55+
Returns next row from latest query result as array. Array's keys are equal to column names and can be found with `getArrayKeys(<array>)`. An empty array returned if there's no more rows left. Must be called after [mysql_real_connect()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_real_connectstr-host-str-user-str-passwd-str-db-int-port3306) and [mysql_query()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_queryhandle-str-query).
5656

5757
Usage example:
5858
```
@@ -67,7 +67,7 @@ for(j = 0; j < keys.size; j++)
6767
### Non-MySQL Related Functions
6868
#### `mysql_fetch_rows(<handle>)`
6969

70-
Returns all rows from latest query result as 2-dimensional array. Array's keys are equal to column names and can be found with `getArrayKeys(<array>)`. An empty array returned if there's no more rows left. Must be called after `mysql_real_connect()` and `mysql_query()`.
70+
Returns all rows from latest query result as 2-dimensional array. Array's keys are equal to column names and can be found with `getArrayKeys(<array>)`. An empty array returned if there's no more rows left. Must be called after [mysql_real_connect()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_real_connectstr-host-str-user-str-passwd-str-db-int-port3306) and [mysql_query()](https://github.com/callofduty4x/mysql/blob/master/README.md#mysql_queryhandle-str-query).
7171

7272
Usage example:
7373
```

0 commit comments

Comments
 (0)