这里是我试图执行代码:如何解决未知的列数据库错误?
function update()
{
$this->name = $_POST['txtname'];
$this->address = $_POST['txtaddr'];
$sql1 = "update reg set adress='$this->address' where name='$this->name'";
$Q1 = $this->db->query($sql1);
echo "Updated Successfully";
}
这是运行时,我收到错误:
A Database Error Occurred
Error Number: 1054
Unknown column 'adress' in 'field list'
update reg set adress='mumbai' where name='sagar'
Filename: C:\wamp\www\sagar\system\database\DB_driver.php
Line Number: 330
我可以采取什么步骤来调试这样的事情?