Hello CT,
i have a question.....
i have write a simple class with 2 function which is here
and wanna use these function as
but it is showing me error...
what should i do in my class/functions so i can use it as i want...
plz help me... thanks is advance...
i have a question.....
i have write a simple class with 2 function which is here
PHP Code:
CLASS db{
public function select(){
$arg = func_get_args();
if(empty($arg)):
$selectClust = "*";
else:
$selectClust = implode(',',$arg);
endif;
return "SELECT ".$selectClust;
}
public function from(nsqlQuery $e){
$arg = func_get_args();
return "FROM ".rtrim(implode(' ',$arg));
}
}
PHP Code:
<?php
db::select()->from('table');
?>
what should i do in my class/functions so i can use it as i want...
plz help me... thanks is advance...
Comment