v5:userguide:error_handling
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:userguide:error_handling [2016/02/02 03:24] – mnewnham | v5:userguide:error_handling [2018/06/27 16:18] (current) – function names starting with lowercase (#430) dregad | ||
---|---|---|---|
Line 67: | Line 67: | ||
set_error_handler(' | set_error_handler(' | ||
- | $db->Execute('DROP INDEX index_that_might_not_exist' | + | $db->execute('DROP INDEX index_that_might_not_exist' |
/* | /* | ||
Line 75: | Line 75: | ||
$db-> | $db-> | ||
+ | </ | ||
+ | |||
+ | ===== Using A Class Method ===== | ||
+ | <code php> | ||
+ | class c | ||
+ | { | ||
+ | function e() | ||
+ | { | ||
+ | print "ERROR TRAP"; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | $c = new c; | ||
+ | |||
+ | $db-> | ||
</ | </ | ||
Line 109: | Line 124: | ||
try | try | ||
{ | { | ||
- | $db = NewADOConnection(" | + | $db = newADOConnection(" |
} | } | ||
Line 140: | Line 155: | ||
- | $c = NewADOConnection(' | + | $c = newADOConnection(' |
- | $c->PConnect(' | + | $c->pConnect(' |
- | $rs=$c->Execute(' | + | $rs=$c->execute(' |
if ($rs) | if ($rs) | ||
Line 165: | Line 180: | ||
include(' | include(' | ||
- | $c = NewADOConnection(' | + | $c = newADOConnection(' |
- | $c->PConnect(' | + | $c->pConnect(' |
- | $rs=$c->Execute(' | + | $rs=$c->execute(' |
if ($rs) | if ($rs) |
v5/userguide/error_handling.1454379897.txt.gz · Last modified: 2017/04/21 11:39 (external edit)