If I define a db connection above the functions in a class is that db connection available in all the functions in the class?Code:<?php
class verify{
$db = ... db connection stuff
function get_suff(){
}
function get_other_stuff() {
}
}
Printable View
If I define a db connection above the functions in a class is that db connection available in all the functions in the class?Code:<?php
class verify{
$db = ... db connection stuff
function get_suff(){
}
function get_other_stuff() {
}
}
Thanks dude, trying to avoid the official php sites as quite often they confuse stuff even more :(