Skip to content

Commit c6aa442

Browse files
committed
docs: fix incorrect code
1 parent 2e43af7 commit c6aa442

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

user_guide_src/source/database/results/013.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class User
66
public $email;
77
public $username;
88

9-
protected $last_login;
9+
protected $lastLogin;
1010

1111
public function lastLogin($format)
1212
{

user_guide_src/source/database/results/014.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
foreach ($rows as $row) {
88
echo $row->id;
99
echo $row->email;
10-
echo $row->last_login('Y-m-d');
10+
echo $row->lastLogin('Y-m-d');
1111
}

user_guide_src/source/database/results/015.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66

77
if (isset($row)) {
88
echo $row->email; // access attributes
9-
echo $row->last_login('Y-m-d'); // access class methods
9+
echo $row->lastLogin('Y-m-d'); // access class methods
1010
}

0 commit comments

Comments
 (0)