资 源 简 介
The built-in MySQL library for PHP is clunky, often requires multiple lines of code to perform a basic task, and provides no interface on top of MySQL. BML, like many MySQL libraries, goes about fixing these things. In BML, queries are structured in a more php-style, object-oriented manner, so your code doesn"t become littered with MySQL blocks.
BML is unique from other popular database libraries as it is table-based as opposed to database based. Table objects are constructed from which you can run queries. When you think about it, a syntax such as $db->select("table", "*"); doesn"t make as much sense as $table->select("*");. Database level queries are still sometimes necessary, and therefore made possible by the static BML::query() method.
BML gives a more object-oriented approach to MySQL queries but doesn"t take away from any of MySQL"s functionality. Additionally, enabling debug mode