Title: Read / Edit Table via PHP
Last modified: June 21, 2022

---

# Read / Edit Table via PHP

 *  Resolved [slpbene](https://wordpress.org/support/users/slpbene/)
 * (@slpbene)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/)
 * Hello,
 * I like to read and edit the tables on serverside, eg. replacing some characters,
   insert new rows and looking for a project/library/code to achieve this.
    Does
   anybody has experiences, best practices or does know other tools or projects?
 * Best,
    Bene

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/#post-15757817)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Just to be sure, you are referring to TablePress tables here, or maybe more general(
   mySQL) database tables?
 * For TablePress, there’s no specific functionality for this, you would have to
   use the internal PHP functions, as e.g. done in the class-controller-admin.php
   file.
    Now, that holds if you want your changes to be permanently saved. If you
   are more interested in making modifications before a table is rendered for the
   site visitor, you could use the available plugin filter hooks, see class-render.
   php.
 * Regards,
    Tobias
 *  Thread Starter [slpbene](https://wordpress.org/support/users/slpbene/)
 * (@slpbene)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/#post-15761205)
 * Hi Tobias,
 * Thanks for your reply. I was thinking about switching to a Database solution 
   with ORM, but I think it is a bit oversized for our project and Tablepress suits
   our requirements in many ways, so I consider to write a solution from scratch
   for the reading & editing use case.
 * Best,
    Benedikt
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/#post-15761901)
 * Hi,
 * ok, but if you are planning to rewrite the reading and editing part of TablePress
   with a custom storage, what exact features are you after then?
 * Regards,
    Tobias
 *  [fanaticit](https://wordpress.org/support/users/fanaticit/)
 * (@fanaticit)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/#post-15762322)
 * I’m loving the pluging, thankyou.
    I need to read from the table that I have 
   to used the scores in another php page. How can I do that? (No modification just
   reading data) EG: tableName: scores Player | Score Tester | 1 Brian | 5
 * $data = $_POST[‘Scores’]
    … loop through data if player==”Brian” … … echo Score…
 *  [fanaticit](https://wordpress.org/support/users/fanaticit/)
 * (@fanaticit)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/#post-15762344)
 * Found it here
    [https://wordpress.org/support/topic/access-table-data-in-php-program/](https://wordpress.org/support/topic/access-table-data-in-php-program/)
 * Thanks
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/#post-15762814)
 * Hi,
 * yes, nice find! This should be a good solution for this kind of search problem
   🙂
 * Best wishes,
    Tobias
 *  Thread Starter [slpbene](https://wordpress.org/support/users/slpbene/)
 * (@slpbene)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/#post-15762961)
 * Hi,
 * I think it’s mainly for utility and helper methods, do access data by criteria,
   sorting, …
 * So mysql statements would allow that, but I want to keep Tablepress as it fits
   our requirements in many ways. I think I am going to write some helper classes
   using native php filtering, etc. This should be the best solution, as some of
   our use cases are very specific.
 * Thanks for your help!
    Best, Benedikt
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/#post-15763361)
 * Hi,
 * ok, I see. Yes, it might be possible to just use the relevant features or classes
   then.
 * Best wishes,
    Tobias   P.S.: In case you haven’t, please rate TablePress [here](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   in the plugin directory. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Read / Edit Table via PHP’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/read-edit-table-via-php/#post-15763361)
 * Status: resolved