10-10-2007, 04:43 PM
|
#4 (permalink)
|
|
The Wanderer
Join Date: Oct 2007
Posts: 20
Thanks: 0
|
a class declaration would be a good start(as Karl said):
PHP Code:
<?php class myClass { private $db; public function __construct ( ) { $this->db = new mysqli('localhost', 'x', 'y', 'z'); //Using mysqli is also a good idea. } } ?>
|
|
|
|