Hi, i've done my programs mainly in functions and would like to place them in class..to be more organise =) i've a class Customer in customer.php and Database in dbConn.php.. in class Customer i've a function AddData(){...}. In class Database, i've a function OpenDb(){} and CloseDb(){}.. i tried doing this but couldn;t work..
customer.php
Class Customer
{
[INDENT]
function AddData()
{
include("dbConn.php");
$dbObj = new Database;
$dbObj.OpenDb();
..............
}[/INDENT]
}
Where did I go wrong?