Results 1 to 9 of 9
Thread: __construct() purpose
Oct 8, 2008, 03:34 #1
- Join Date
- Sep 2006
- 0 Post(s)
- 0 Thread(s)
I'm fairly new to OOP programming but I'm having a hard time understanding what __construct() does.
For example, I want to write a MySQL class, would I do this:
function __construct($databaseName, $databaseHost, $databaseUser, $databasePass)
mysql_connect($database .. etc)
It wouldn't suprise me if I'm not supposed to do either
Can anyone shed some light?