Lazy Mofo (LM) is a single PHP5 class for performing CRUD (create, read, update and delete) operations on a MySQL database table.
What can LM do?
Render a grids and forms from SQL statements or table name.
Grid features include pagination, sorting, and inline editing. Search can be added also.
Define select, radio, and checkbox inputs with SQL statements
Upload documents, resize or crop images
LM can be used for reporting since grids can be generated from SQL statements
Grid uses both SQL_CALC_FOUND_ROWS and limit offset query for efficiency and low memory usage on large datasets.
Lightweight; a single class
good work thanks
Bravo, Very interesting! very useful! is a professional job! But there are some errors, for example there is an error that appears when you click on the name of the column to change the sorting of the data, -The error " data sorting " : if($_desc == 1) $desc_str = 'desc'; else $desc_str = ''; miss "else $desc_str = '';" -The error "image display" : in function "format_title" eliminate the argument "null" and become "$friendly_name = mb_convert_case($friendly_name, MB_CASE_TITLE, $this->charset);" -At line 699 : Error "Undefined index for is_active" use this : if (isset($_POST[$column_name])) $value = $_POST[$column_name]; else $value = @$this->form_default_value[$column_name];" In place of : $value = @$this->form_default_value[$column_name]; -At line 2407 : Error "Undefined index " use "if (isset($_POST[$column_name])) $val = $_POST[$column_name];" in place of : $val = $_POST[$column_name]; Best Regards
Very good tool. simple and powerful.