forked from a1phanumeric/PHP-MySQL-Class
-
Notifications
You must be signed in to change notification settings - Fork 0
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
update #1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update class.MySQL.php [Thank you!]
Use a port option
Update class.MySQL.php
[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.
Strengthen transactions
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.
Update class.DBPDO.php
Update class.MySQL.php
fix $affected while querying an UPDATE
add utf8 support
Update class.DBPDO.php
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.