hey... here's a quick start-up example...
<?php
class connection
{
function connect()
{
$sql = mysql_connect("xxx","xxx","xxx");
}
}
?>
above... we made a class called : connection, and it contains one method ( one function ) which is : the connection function... now the class itself is nothing... so how do we create objects ? ( an object is an instance of a class... )... here's an example on how to access the above connection function of our connection class :
<?php
// the above class is included...
$obj = new connection;
$obj -> connect();
?>
and bingo, a database connection was established... hope the above simple example will help you to continue on...
for more resources about classes, click here and here
Good luck...