Codeigniter finds resuls only on string, not on php variables! |
[eluser]Unknown[/eluser]
I have a very... well, strange problem! I use to write my MySQL-Queries by myself so I wrote this: Code: $sql = " That way my $result is empty. If I replace $arg_ref by for example 'text', I get the expected result. I tested $arg_ref, it is a string and it has the value 'test'. I REALLY don't understand that. That also never happened before! Not even in the same file! Can please anyone who might understand that problem explain me how to fix that? - Marco.
[eluser]Twisted1919[/eluser]
Code: $sql = "
[eluser]Unknown[/eluser]
[quote author="OnceMac" date="1291577513"] [code]e.caption = '{$arg_ref}'[/quote] Enclosing your $arg_ref variable in curly braces might work too by explicitly setting your variable within the string. http://www.php.net/manual/en/language.ty...ng.complex |
Welcome Guest, Not a member yet? Register Sign In |