Welcome Guest, Not a member yet? Register   Sign In
passing special character to MySQL SP
#3

[eluser]dinomycle[/eluser]
hello aken
thanks for the reply....
means, can u explain ..i am not an expert in this... how should i do this

there is difference in what i told before...
if i put $name = "ABC_(CDE)"; it works when i pass to the SP...but in my actual code, $name is coming as a function argument and i pass it directly to the SP...in this condition only the problem coming...

Code:
function1($name)
{
  $id = 3;
        
$sql = "call getInfo(?,?);" ;
$query=$this->db->query($sql,array($id,$name));
}
so when i checked the string length of the $name it is coming as 17 and if i do $name = "ABC_(CDE)"; coming as 9... so is it because of some UTF encoding ???

thanks for support
dino


Messages In This Thread
passing special character to MySQL SP - by El Forum - 08-04-2012, 09:46 PM
passing special character to MySQL SP - by El Forum - 08-04-2012, 11:14 PM
passing special character to MySQL SP - by El Forum - 08-05-2012, 12:25 AM
passing special character to MySQL SP - by El Forum - 08-06-2012, 12:03 AM
passing special character to MySQL SP - by El Forum - 09-17-2012, 06:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB