Skip to content

update #1

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 36 commits into from
Apr 11, 2017
Merged

update #1

merged 36 commits into from
Apr 11, 2017

Conversation

lifeha
Copy link
Owner

@lifeha lifeha commented Apr 11, 2017

No description provided.

leewoodman and others added 30 commits December 19, 2013 11:10
Update class.MySQL.php [Thank you!]
Use a port option
[ISSUE #37] better data-security with given variable-types
query 'SET NAMES utf8' error: mysql_num_rows() expects parameter 1 to be...
According to http://php.net/mysql_query

For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, mysql_query() returns a resource on success, or FALSE on error.

For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error.
Added a destructor, is needed in case of cleaning up permanent connections
Set attributes to private
Added commit and rollback methods;
Added charset management (experimental);
Removed useless setting.
Forces commit before closing.
Assume that some fields needs to be public
the command mysql_insert_id was related to the lastest database
connection
not to the object related one.
fix issue #40 and add full type names like 'string' and 'integer'
execute, fetch and fetchAll can now accept a single string as the
second parameter if only one is needed (seems pointless sending an
array with one item)

Also, the fetchAll function accepts a third parameter to allow you to
return an array with a key being a column from the database as opposed
to the standard indexed array.
Change $wheretypes parameter as default empty array
When doing CleanData, the default type will return the data directly
Use of "prep_query" in execute function.
fix $affected while querying an UPDATE
add utf8 support
@lifeha lifeha merged commit 4c48d2f into lifeha:master Apr 11, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants