ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:save

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
activerecord:save [2015/12/05 02:05] – created mnewnhamv5:activerecord:save [2016/01/13 02:15] (current) – ↷ Page moved from activerecord:save to v5:activerecord:save mnewnham
Line 7: Line 7:
 ===== Description ===== ===== Description =====
 To insert a new record into the database, change an object's properties and then call the save() method. To insert a new record into the database, change an object's properties and then call the save() method.
 +The method saves a record by executing an INSERT or UPDATE SQL statement as appropriate.
 +
 +==== Returns ====
 +
 +^Value^Description^
 +|0|An insert or update was unsuccessful|
 +|1|An insert or update was successful|
 +|-1|In the case of an update, and no data was modified|
 +
 ===== Usage ===== ===== Usage =====
 <code php> <code php>
v5/activerecord/save.1449277506.txt.gz · Last modified: 2017/04/21 11:21 (external edit)