Wiki source for PhpMyEdit

Show raw source


>>**See also**
[[PhPMyEditDiscussion | Discussion-page]]>>::c::
PhpMyEdit generates PHP code for displaying/editing MySQL tables in HTML. All you need to do is to write a simple calling program (a utility to do this is included). It includes a huge set of table manipulation functions (record adition, change, view, copy, and remove), table sorting, filtering, table lookups, and more. (quote from the [[ | phpMyEdit homepage]]).

phpMyEdit is released under the GNU GPL license.


The phpMyEdit package has been modified to work seamlessly from within the Wikka environment. The modified package will be referrered to as phpMyEditWikka. If you are familiar with phpMyEdit, you'll be at home with phpMyEditWikka. The functionality is the same, but there have been some 'tweaks' to make it Wikka friendly (see 'Tech Notes' below for the list of modifications).

[[ | phpMyEdit-for-Wikka.version1.tar.gz]]


- The phpMyEditWikka package has an expectation about where it is located in the Wikka directory.
- **You must** unzip the package and **place the phpMyEdit directory under 3rdparty/plugins/**.

- After you have uploaded the files to the right folder, run the setup script.
- Using a web browser, go to **""""**

You should see this...

- Enter in the MySQL database info and click Submit.

- Select a database and click Submit.

- Select a table and click Submit.

- Select a primary key and click Submit.

- Change the filename if you want and click Submit. This is the name that you use to call the action from within Wikka.

- Edit a Wikka page and put in a action call using the filename that was generated above.

- That's it. You should now have a view of your table.

===In closing...===

Where do you go from here? [[ | Download]] and read the phpMyEdit documentation. The action file that was created for you is a starting point. The majority of the configuration can be done by editing the action file, but for advanced functionality read about triggers. You will need to create the trigger files manually.

I've been using phpMyEditWikka for about a month in a small production environment. I'm fairly confident that the bugs have been worked through.

This package has been a useful addition to my Wikka site. I hope you will find it useful too. Best wishes. -- JsnX, 26 March 2005


===Tech Notes: Modifications from the official phpMyEdit distribution===

==Setup file tweaks==
- The default access permissions are customized for Wikka. By default phpMyEdit allows everyone full access to MySQL tables, including deleting records. I find this to be a bit of a security risk. The default access in phpMyEditWikka allows registered Wikka users full access, non-registered users only have read access.
- The suggested filename is modified to remove underscore characters because Wikka actions cannot contain underscores.
- Three options were removed from the setup script because they are unnecessary or problematic within the Wikka environment:
- Page title.
- Page header.
- HTML header and footer.
- The display of the query time has been turned off by default.
- A new option gets added to each field: wikkaformatting. See above for more details. [... to be added ...]
- The default location where the class file is looked for has been modified.
- The location of the generated file was modified to save to the Wikka actions folder.

==Class file tweaks==
- ... to be added ...

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki