Slide 27
Slide 27 text
PROCEDURAL
<
?
p
h
p
f
u
n
c
t
i
o
n g
e
t
_
d
b
(
) { /
* r
e
t
u
r
n t
h
e d
b c
o
n
n
e
c
i
t
o
n *
/
}
f
u
n
c
t
i
o
n u
s
e
r
_
s
h
o
w
(
$
u
s
e
r
) { /
* A
w
e
s
o
m
e p
r
o
c
e
d
u
r
a
l c
o
d
e *
/ }
f
u
n
c
t
i
o
n u
s
e
r
_
f
e
t
c
h
(
$
u
s
e
r
) { $
d
b = g
e
t
_
d
b
(
)
; /
* A
w
e
s
o
m
e p
r
o
c
e
d
u
r
a
l c
o
d
e *
/
f
u
n
c
t
i
o
n u
s
e
r
_
d
e
l
e
t
e
(
$
u
s
e
r
) { $
d
b = g
e
t
_
d
b
(
)
; /
* A
w
e
s
o
m
e p
r
o
c
e
d
u
r
a
l c
o
d
e *
/
f
u
n
c
t
i
o
n u
s
e
r
_
c
r
e
a
t
e
(
$
u
s
e
r
, $
d
a
t
a
) { $
d
b = g
e
t
_
d
b
(
)
; /
* A
w
e
s
o
m
e p
r
o
c
e
d
u
r
a
l c
o
f
u
n
c
t
i
o
n u
s
e
r
_
u
p
d
a
t
e
(
$
u
s
e
r
, $
d
a
t
a
) { $
d
b = g
e
t
_
d
b
(
)
; /
* A
w
e
s
o
m
e p
r
o
c
e
d
u
r
a
l c
o
f
u
n
c
t
i
o
n u
s
e
r
_
s
t
o
r
e
_
d
a
t
a
(
$
u
s
e
r
, $
u
s
e
r
_
d
a
t
a
)
{
i
f (
u
s
e
r
_
f
e
t
c
h
(
$
u
s
e
r
)
) {
r
e
t
u
r
n u
s
e
r
_
u
p
d
a
t
e
(
$
u
s
e
r
, $
u
s
e
r
_
d
a
t
a
)
;
} e
l
s
e {
r
e
t
u
r
n u
s
e
r
_
c
r
e
a
t
e
(
$
u
s
e
r
, $
u
s
e
r
_
d
a
t
a
)
;
}