MySQL Database Wrapper PHP Class 1.0.4
Sunday, September 03, 2006MySQL Database Wrapper PHP Class, News
A new version of the MySQL Database Wrapper PHP Class has been released. Read further to see what is new in this version of the script.
What's new in this version:
- you can now watch in the debug window the value of any variable of the current script at any given moment by calling the newly added watch property
- the affectedRows property always returned 1
- didn't realize that for computing the query execution time i used a method that would work only on PHP 5 and so, on PHP 4, sometimes the debugger would show negative numbers for query running time
- symbols didn't get highlighted in debug windows
- the unsuccessful queries had "execution time" which was a non-sense
- added alias method for the mysql_insert_id() function, called insert_id()
- for all the methods that handle queries you can now specify two optional parameter: the __FILE__ and __LINE__ PHP magic constants and the debugger will let you know from what file and line was a specific query executed
- besides the 2 new parameters specified above, the "query()" method has another new parameter - $replacements - which, if specified as an array, replaces all the "?" symbols in the query with the corresponding, escaped value from this array
- all the methods that perform operations on resources will perform their actions on the last returned resource by default
- the debugger now shows the number of returned rows for SELECT queries (this data is also available by the newly added "returnedRows" property) and the number of affected rows for action queries
- the debugger bar can now be minimized if needed both in real-time or by default by setting the newly added "minimizeDebugger" property
- the debugger shows the mySQL queries in a more readable way
- the debugger is now able to highlight a few more mySQL keywords
- tweaked various aesthetical aspects of the debugger window
- debug information now can be logged to a file instead of being outputted to the screen
0 comments:
Post a Comment