Executing MYSQL Stored Procedures |
[eluser]bhakti.thakkar[/eluser]
Hi all, i have created a SP and created successfully (MYSQL 5.0.45) now i want to execute that SP in CI. i read somewhere in this forum that you have to use mysqli instead of mysql driver and for that i even changed the line in database.php as below: Code: function db_connect() and also have changed the database setting to this: $db['default']['pconnect'] = FALSE; and run the script: $sql=" call colavg('Task_T' , 'EstimatedHours_DC')"; $rs= $this->db->query($sql); //print $rs; and i still get the error : Code: A Database Error Occurred please help
[eluser]bgreene[/eluser]
$sql=”select colavg(‘Task_T’ , ‘EstimatedHours_DC’)”; $rs= $this->db->query($sql);
[eluser]jipod[/eluser]
I also have some problem ... hiks.. but a sample stored procedure i tried call and can get results, this code like this : Code: <?php but after I echo this result, I get some errors like this !!! Quote:A Database Error Occurred
[eluser]safarath[/eluser]
the below forum will help you!! http://ellislab.com/forums/viewthread/179001/
[eluser]bijufun[/eluser]
@jipod : hey ! i also get this error while i was trying to check user login. When the sql find the records it don't give any error. But when the sql finds no records, it pop out same error. And I try to solve the problem as mentioned by "safarath". But its not solving my error. Please help !! |
Welcome Guest, Not a member yet? Register Sign In |