mirror of
https://gitlab.com/CodeSolutionsProject/DBWrapper.git
synced 2026-02-17 10:31:31 +01:00
Typo fix in readme
This commit is contained in:
19
README.md
19
README.md
@@ -20,12 +20,10 @@ This script is a simple wrapper for SQLite3, MySQL and PgSQL, for make possible
|
||||
* Queries
|
||||
|
||||
```php
|
||||
//Does a query
|
||||
mixed dbw_query (resource $conn, string $query);
|
||||
//This does a multiquery without returning nothing. Its used for load from a file/script
|
||||
//Does a query (array, or false if error)
|
||||
array dbw_query (resource $conn, string $query);
|
||||
//This does a (non interactive) multiquery. Its used for load from a file/script for example.
|
||||
bool dbw_multi_query(resource $conn, string $multiquery);
|
||||
//Fetch a row. ($typearray optional, see below)
|
||||
array dbw_fetch_array (resource $conn,resource $result[, string $typearray]);
|
||||
//This do a query and fetch array, all in one function($typearray optional, see below)
|
||||
array dbw_query_fetch_array (resource $conn,string $query[, string $typearray]);
|
||||
```
|
||||
@@ -33,13 +31,15 @@ This script is a simple wrapper for SQLite3, MySQL and PgSQL, for make possible
|
||||
* Using result of a query
|
||||
|
||||
```php
|
||||
//Fetch a row. ($typearray optional, see below)
|
||||
array dbw_fetch_array (resource $conn,array $result[, string $typearray]);
|
||||
//Wrappers of dbw_fetch_array with row or assoc arguments
|
||||
array dbw_fetch_row(resource $conn,resource $result);
|
||||
array dbw_fetch_assoc(resource $conn,resource $result);
|
||||
array dbw_fetch_row(resource $conn,array $result);
|
||||
array dbw_fetch_assoc(resource $conn,array $result);
|
||||
//Goto X result of a query. If row is not specified, will be first row, 0
|
||||
bool array dbw_query_goto(resource $conn,resource $result[,int $row]) ;
|
||||
bool array dbw_query_goto(resource $conn,array $result[,int $row]) ;
|
||||
//Return number of results of a query
|
||||
int dbw_num_rows(resource $conn, resource $result);
|
||||
int dbw_num_rows(resource $conn, array $result);
|
||||
```
|
||||
|
||||
* Without a query
|
||||
@@ -69,4 +69,3 @@ This script is a simple wrapper for SQLite3, MySQL and PgSQL, for make possible
|
||||
-BOTH -> (Default) Both types of indexes
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user