Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php $this->;db->;插入_id();对于insert Id,它可以正常工作。但我想插入企业名称也如何_Php_Database_Codeigniter - Fatal编程技术网

Php $this->;db->;插入_id();对于insert Id,它可以正常工作。但我想插入企业名称也如何

Php $this->;db->;插入_id();对于insert Id,它可以正常工作。但我想插入企业名称也如何,php,database,codeigniter,Php,Database,Codeigniter,这是我的工作 但我想加上企业名称 $suppliers_acc['supplier_sign_up_id'] = $this->db->insert_id(); 所以,如何做请帮助我 提前谢谢。你应该用这样的东西 $suppliers_acc['business_name'] = $this->db->insert_business_name(); 如果需要,请在db类中实现此方法。谢谢您,这是我的工作--解决方案$suppliers\u acc['business\

这是我的工作

但我想加上企业名称

$suppliers_acc['supplier_sign_up_id'] = $this->db->insert_id();
所以,如何做请帮助我


提前谢谢。

你应该用这样的东西

$suppliers_acc['business_name'] = $this->db->insert_business_name();

如果需要,请在db类中实现此方法。

谢谢您,这是我的工作--解决方案$suppliers\u acc['business\u name']=$supplier\u sign\u up['business\u name'];精彩的!在Stackoverflow上,你可以给人们有用的答案来感谢他们,并从所有答案中选择任何一个。
$suppliers_acc['business_name'] = $this->db->insert_business_name();