how to handle mysql error result?

hi, just wondering how to do this.

Normally i would update a record and on errorresult i would insert the record or create table first;
How to do this in codeigniter?

I just seeing on my friend's java code ..
they usually use try .. catch .. to test error .. and i realize that PHP has it too.

if you interested on this way .. you can start to learn try and catch in PHP

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.