Edit
by serna - 7 years ago (2018-04-04)
i need a add tag when enter article in mysql table
| i have class to input data (article ) in my mysql table , and need add tags with join other tables mysql ( categorie ) |
Ask clarification
1 Recommendation
Simple CRUD with MySQL 2: Output SQL and CRUD forms based on remoteDB class
This class can generate SQL and CRUD forms based on remoteDB class.
It is a class derived from the original work by Mahboobz. This version was improved in the following ways:
Version 4:
Update: replaced irp_commonSQL.php (obsolete) with common_pdo.php
Version 3:
- Added 2 more callback: before_save(), before_updated()
- Tested on Master-detail tables: see example pages
- Tested on view tables.
Version 3: added 2 new hooks, and master->detail capability
added 2 functions: setEdit() and setDelete() to control buttons
Version 2:
- Added $this->index array to store one or more PK names (in place of one pre-defined PK='id')
- Added get_where(), get_hidden($record) to handle multiple PKs
- Added optional hook and callback to customize the CRUD page:
1) special input fields: select, radio... (crud_get_input)
2) special edit fields: select, radio... (crud_get_edit)
3) special show fields: links, references... (crud_get_show)
4) more actions in table (crud_action_hook)
- Added 3 static utility: make_select, make_radio and make_checkbox for input/edit fields
- Added CONFIRM to delete
- Added $extrasql parameter to renderVertically(), to extend the basic sql: "SELECT * FROM ".$this->table
- Cosmetic minor variations, use of css file (in: remoteDB/css/style.css)
| by Marco Sillano package author 255 - 6 years ago (2018-04-22) Comment
Maybe a simple CRUD page can helps you.
You must:
1) customize the input field to have a TEXTAREA (for article) in place of TEXT
2) customize input for tags, you can choose: RADIO, CHECKBOX or SELECT from a lookup table.
All with very little code. |