I currently have 12 files I've designed for database connect. I have 1 interface, 1 main class & 11 sub classes.

File List:
iDatabase.php
Database.php
mySQL_connect.php
mySQL_close.php
mySQL_error.php
mySQL_errno.php
mySQL_escape.php
mySQL_query.php
mySQL_array.php
mySQL_row.php
mySQL_assoc.php
mySQL_num.php
mySQL_id.php

While I've gotten as far as creating all the class code & the interface, I'm stuck at how to connect them & utilise them in a separate file. If anyone could give me on insight that would be wonderful.

Thanks for you time

Member Avatar for diafol

Are you referring to actual OOP classes or just include files that hold functions? Personally, I can't see why you've created loads of files. A class file is usually prefixed class.MyClass.php or similar as well.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.