v5:activerecord:getattributenames
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
activerecord:getattributenames [2015/12/05 02:02] – created mnewnham | v5:activerecord:getattributenames [2018/07/02 14:19] (current) – prefer functions start lowercase (#430) peterdd | ||
---|---|---|---|
Line 10: | Line 10: | ||
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> | ||
- | $db->Execute(" | + | $db->execute(" |
`id` int(10) unsigned NOT NULL auto_increment, | `id` int(10) unsigned NOT NULL auto_increment, | ||
`name_first` varchar(100) NOT NULL default '', | `name_first` varchar(100) NOT NULL default '', | ||
Line 22: | Line 22: | ||
$person = new person(); | $person = new person(); | ||
- | echo "< | ||
var_dump($person-> | var_dump($person-> | ||
Line 28: | Line 27: | ||
* Outputs the following: | * Outputs the following: | ||
* array(4) { | * array(4) { | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
| | ||
*/ | */ | ||
</ | </ |
v5/activerecord/getattributenames.txt · Last modified: 2018/07/02 14:19 by peterdd