Welcome Guest, Not a member yet? Register   Sign In
Problem with CI db query with parentheses/brackets [SOLVED]
#7

[eluser]Atharva[/eluser]
[quote author="coldfire82" date="1294274701"][quote author="Cristian Gilè" date="1294271056"]

One more thing, how can I echo the last sql query executed?
-[/quote]

Code:
echo $this->db->last_query();

will give you the last query executed.

Regarding your problem, you can try following code
Code:
$sql="SELECT id FROM cars Where name = ?";
$query = $this->db->query($sql,array($car_name));


Messages In This Thread
Problem with CI db query with parentheses/brackets [SOLVED] - by El Forum - 01-06-2011, 01:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB