Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an out-of-box PHP solution to do revision control for database fields?

I'm looking for something that I can use to do versioning in PHP (not for code). I'd like to do revision control for a text input users edit.

I've found something great for Ruby (https://github.com/courtenay/acts_like_git) but can't find anything for PHP.

Does it not exist?

like image 861
Allan Avatar asked Feb 08 '11 01:02

Allan


People also ask

How retrieve data from database and display it in textbox using PHP?

Show activity on this post. $query = "SELECT * from admin where username = '{$_SESSION['login_user']}'"; $result = mysqli_query($conn,$query); while($row=mysqli_fetch_assoc($result)) { echo"<tr>"; echo"<td><input type=\"text\" name=\"user_id\" value=\".

How get fetch data from database in PHP?

Data can be fetched from MySQL tables by executing SQL SELECT statement through PHP function mysql_query. You have several options to fetch data from MySQL. The most frequently used option is to use function mysql_fetch_array(). This function returns row as an associative array, a numeric array, or both.


2 Answers

You could use one of the ORM solutions that support versioning behavior. Both Doctrine and Propel support this, and there probably are even more.

Or maybe I misread your question, and you're looking for versioning of the model itself instead of versioning your data?

like image 134
wimvds Avatar answered Oct 09 '22 04:10

wimvds


This looks promising, but I don't know how well it works. Will you test it for me? :P

http://code.google.com/p/ruckusing/

like image 38
Mchl Avatar answered Oct 09 '22 05:10

Mchl