07-14-2008, 03:38 PM
|
#15 (permalink)
|
|
The Acquainted
Join Date: May 2008
Posts: 175
Thanks: 9
|
Well, since this is a math class, I would actually have a seperate class for the database as well
PHP Code:
class Math { public mysqli; public function __construct() { $this->mysqli = new mysql('local','user','pass','db'); } } $math = new Math; $math->mysqli->query("SELECT....");
__________________
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
|
|
|