Here’s my class:
<?php
class eshop_log extends baseDB {
function insert($tel,$eshop_id,$log) {
$this->insert();
}
}
?>
And here’s how I using it:
$tel= $_POST['telephone'] ;
$id= $_POST['id'] ;
$log="log";
$e_l= new eshop_log();
$e_l->insert($tel,$id,$log);
Why am I getting Missing argument 1 for eshop_log::eshop_log()??
Thanks a ton
This has something to do with your
baseDBclass. Look into this class, how does the constructor look like? If there is something like:you need to pass a parameter to the constructor: