Jump to content

Insert values from additional class problem


Recommended Posts

I develop new class for let some users to add their own the products, i try autoExecute() autoExecuteWithNullValues() also try Execute() function too but nothing happened no error msg just nothing happened , i attached the file too at end of class i have function that is:

public function urunKayit($id_uye,$kat) {

//id_uye means user id i add that field to product table, for track the which user have which products

$now = date('Y-m-d H:i:s',time());
$values = array('id_uye'=>$id_uye,
			'id_category_default'=>$kat,
			'active'=>0,
			'date_add'=>$now,
			'id_supplier'=>0,
			'id_manufacturer'=>0,
			'id_employee'=>0);

return DB::getInstance()->autoExecuteWithNullValues('kp_product', $values, 'insert', $where = false, $limit = false);
}

 

Please this is urgent situation.

UyeProfil.php

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...