I am tring to validate that there is a record for a name on a csv file. I am using an sql statement to look to see if that name exist, but i get this error
Error Number: 1054
Unknown column 'aa' in 'where clause'
SELECT name FROM company WHERE name =aa
public function findCompany($company){
$query = $this->db->query("SELECT name FROM companyWHERE name =".$company);
if($query->num_rows() > 0){
return true;
}else{
return false;
}
}
Could it be an isue with attaching a variable to the end of the string?