iam working with zend 2. Now i want to insert a data which contain single quotes( for eg: application's name).
use Zend\Db\Table\AbstractTable;
class ApplicationTable extends AbstractTable {
protected $_name = "application";
public function addAlbum($data) {
$this->insert($data);
}
}
I am using the above code and it shows a syntax error. How can i escape single quotes while processing the query? Somebody please help...