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, :-
- Should i use try catch on every query execution.
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.
- And how to handle exceptions on ajax.
please some one clear my doubts about this.