Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 291 Bytes

File metadata and controls

10 lines (8 loc) · 291 Bytes

Question 5 - Basic SQL

Please consider the following:

$place = "Jimmy's Place";
$sql = "INSERT INTO place(name) VALUES('{$place}')";
$this->db->query($sql);

Is this going to be valid, or will it produce an error? And if there is an error, what is it and how can it be fixed?