How can I replace all '?' the variables? Something like:
$name = 'test' ;
$lname = 'lastTest';
$id = 1 ;
->where ( 'customers.name = ? and customers.lastname = ? and customers.id = ?' , $name , $lname , $id ) ;
output:
customers.name = 'test' and customers.lastname = 'lastTest' and customers.id = 1
Any ideas?
I really think you should use a library like PDO, but here is a solution nonetheless: