【发布时间】:2011-01-14 18:11:01
【问题描述】:
我想将图像上传到我的服务器,它工作正常,我已经加密了图像上的名称。
但现在我想更新数据库中的用户表,以便在用户的个人资料中显示图像。
我的问题是我不知道如何在名为“users”的数据库表中插入加密的图像名称,而用户表中的毡字段是“profile_picture”。
我试过了
$profilBilledNavn = $this->upload->data('file_name');
$this->db->where('username', $this->input->post('username'));
$this->db->update('users', $profilBilledNavn);
但它不起作用。我做错了什么?
【问题讨论】:
-
嗨西蒙:查看这篇文章stackoverflow.com/questions/25174176/…
标签: database codeigniter submit