Welcome Guest, Not a member yet? Register   Sign In
active record set: avoiding single quotes?
#1

[eluser]sl3dg3hamm3r[/eluser]
Hi there

If I have something like

Code:
$this->db->join('PrStation_Material', 'PrStation_Material.Id = ' . $idMaterial);

--> JOIN `PrStation_Material` ON `PrStation_Material`.`Id` = `6`

This sql won't work because of the quotet 6 or `PrStation_Material`.`Id`. Is there a possibility to prevent quoting in general?

Thx in advance
Sl3dg3




Theme © iAndrew 2016 - Forum software by © MyBB