hello i would like to make a class where in all the functions im using is stored on a single class for right now each function is assigned on each class
so basically maby somebody know about this
like i want to make a commonClass.php and put the comboBox, queryList, queryRecord functions and how can i use it
sample from my queryList function is like this
function queryList($sql, $link, $page, $rowsPerPage='10', $pageLimit='10', $var1='', $value1='', $var2='', $value2='') {
and here's the way i call the function
<?
include("queryList.php");
include("queryRecord.php");
// for querylist
$queryList = new queryList( $sql, 'content.php', $page, 15, 10 );
// for query record
$makeQuery = new queryRecord( $sql );
// for combo box
$levelListBox = new comboBox('levels', 'levelCode', 0, 1, $var1, 'levelDesc', 'Level');
?>