\r\nI am not sure what you mean by "manually".\r\n
\r\n\r\n So for now instead of having to type five lines of code every time we want to query a database, we only have to type three. \r\n
\r\n\r\nIf you use mostly one (standard) connection throughout the app, then most query calls can be reduced to something like:\r\n
\r\n\r\nrow = myQueryWrapper("select * from foo")\r\nwhile getNext(row) { // for each row in result set\r\n print("Amount is " & row['amt'])\r\n ....\r\n}\r\n\r\nBoth ASP and PHP can do something like this (although ASP requires a MoveNext IIRC). I am not sure where the bottleneck is in your simplification attempt.\r\n
\r\nI take that back. I think you need two different handles minimum for PHP (assuming MySQL API). I'll have to experiment to verify that.\r\n