I need good advice and resources, reference books, web sites etc. regarding how to write good program with the best performance in php's database executions.
I am using InterBase in most cases, and MySQL in some cases.
Such as the usage of complicated SQL statments, union, joint, subqueries or use the php programming to divide the complicated SQL to small SQLs, in which cases, which approach is better?
When and how to close the connection to release the server resources etc.?
Or in what case, I should care about clean programming rather than small performance improvement due to the hardware's improvement will improve so quick that I don't have to worry about the performance too much (unless a few very bad performance programming. such as ...)
Thanks!