Re: [PHP] When to call mysqli::close

2012-01-31 Thread Stuart Dallas
On 31 Jan 2012, at 16:28, Albert Kamau wrote: > When should i call mysqli::close ? Should I call $stmt->close() at the end > of the method(below) . Or should I call it after every condition ensuring > that I close the database connection even if the process fails at some > stage e.g bind param Thi

[PHP] When to call mysqli::close

2012-01-31 Thread Albert Kamau
Hi good people, When should i call mysqli::close ? Should I call $stmt->close() at the end of the method(below) . Or should I call it after every condition ensuring that I close the database connection even if the process fails at some stage e.g bind param public function function_name($id,$new_i