Reputation: 215
I am using php pdo with postgres. I am using core php, no mvc, no classes and objects. I have some doubts in my mind since i am new to development, :-
And if i use try catch then should i exit the running script on exception
And is there a way to use one try catch for all queries, i mean making a common function for executing queries.
please some one clear my doubts about this.
Upvotes: 2
Views: 334
Reputation: 158007
I wrote an article where tried to explain all there matters, PHP Error reporting which you may find interesting.
Upvotes: 4
Reputation: 23763
There are too many questions and they are too generic. But in most cases:
Upvotes: 3