Re: [PHP-DB] debugging pg_connect

2007-04-29 Thread John DeSoi
I suspect that PostgreSQL would log anything related to a network connection problem if the error logging level was set correctly. If you don't see any of those perhaps it is a networking issue. You might need to try an ethernet capture tool like Wireshark or perhaps something like tcpflow.

[PHP-DB] 20K photos

2007-04-29 Thread elk dolk
Hi all, Imagine that you want to put some 2 historical photos On display in your website , you use PHP and MySQL. Preparing a photo album with 200 photos is no problem but for 2 photos! would you do it in the same way? Please comment. ---

Re: [PHP-DB] 20K photos

2007-04-29 Thread muadib
Sorry but I don't see where the problem would be. Aleksander Quoting elk dolk <[EMAIL PROTECTED]>: Hi all, Imagine that you want to put some 2 historical photos On display in your website , you use PHP and MySQL. Preparing a photo album with 200 photos is no problem but for

Re: [PHP-DB] 20K photos

2007-04-29 Thread Niel Archer
Hi > Imagine that you want to put some 2 historical photos On display in > your website , you use PHP and MySQL. > Preparing a photo album with 200 photos is no problem but for 2 photos! > would you do it in the same way? Yes, but I don't necessarily see the need for a db. If y

Re: [PHP-DB] error logging MySQL syntax errors?

2007-04-29 Thread Chris
bedul wrote: plz remind to send to us your aplication.. the problem may cause from your sintax don't match the version No - *don't* send us your application. Only send us the relevant lines from the script if you can't work it out. -- Postgresql & php tutorials http://www.designmagick.com/ -

[PHP-DB] die vs exception

2007-04-29 Thread Bruce Cowin
I have written a generic sql database class which contains a method RunQuery which uses mssql_query. To catch errors, should I include the "or die" clause or should I wrap it in a try/exception block? The first will stop the script running but for a generic class, I was thinking it'd be better

Re: [PHP-DB] die vs exception

2007-04-29 Thread Chris Verges
The DB and MDB2 packages in the PEAR library use a third option, which is to return an "Error" subclass as the result rather than "throw"ing it. Prons and cons for all, just wanted to throw in this option too. Btw, both the DB and MDB2 packages are already generic classes that support mssql as we