ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:active_record_tutorial

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
v5:activerecord:active_record_tutorial [2016/01/18 07:43]
66.249.75.217 ↷ Links adapted because of a move operation
v5:activerecord:active_record_tutorial [2019/05/08 16:39] (current)
dregad ADODB_ASSOC_CASE not $ADODB_ASSOC_CASE
Line 132: Line 132:
   $person = new person();   $person = new person();
  
-===== Using $ADODB_ASSOC_CASE ==== +===== Using ADODB_ASSOC_CASE ==== 
-You can use [[v5:​reference:​adodb_assoc_case]] to control the field names+ 
 +You can define the [[v5:​reference:​adodb_assoc_case]] ​constant ​to control the field names' case
  
 <code php> <code php>
-$ADODB_ASSOC_CASE ​= 0;+define('​ADODB_ASSOC_CASE', ADODB_ASSOC_CASE_LOWER);​ 
 +require "​adodb.inc.php"​;
 $person = new person('​People'​);​ $person = new person('​People'​);​
 $person->​name = '​Lily';​ $person->​name = '​Lily';​
-$ADODB_ASSOC_CASE ​= 2;+ 
 +define('​ADODB_ASSOC_CASE', ADODB_ASSOC_CASE_UPPER);​ 
 +require "​adodb.inc.php"​;
 $person2 = new person('​People'​);​ $person2 = new person('​People'​);​
 $person2->​NAME = '​Lily';​ $person2->​NAME = '​Lily';​
v5/activerecord/active_record_tutorial.txt · Last modified: 2019/05/08 16:39 by dregad