I've tried everything!
This section of code doesn't work - Query failed: Unknown column 'Acura' in 'where clause'
$make = "Acura";
$query = "SELECT DISTINCT model FROM $table WHERE make = $make";
This section will work just fine.
$query = "SELECT DISTINCT model FROM $table WHERE make = 'Acura'";
Anyone know what is going wrong?
This section of code doesn't work - Query failed: Unknown column 'Acura' in 'where clause'
$make = "Acura";
$query = "SELECT DISTINCT model FROM $table WHERE make = $make";
This section will work just fine.
$query = "SELECT DISTINCT model FROM $table WHERE make = 'Acura'";
Anyone know what is going wrong?