[PHP] PHP, exception and PostgreSQL

2005-02-07 Thread Konference
Hello, is here somebody who works with PostgreSQL in PHP? I have a PL/SQL function, which can raise an exception. I am not able to catch _only_ exception error message in PHP. I can parse Warning: pg_query(): Query failed: ERROR: Exception error string. in... but I think, it is not clear

[PHP] multiarray

2003-03-05 Thread Konference
Hi all, i have o question, is there some solution how to make from multi-array no-multi-array? :) i need to make from multi-array this array: $pole[] = gk $pole[] = gk-ati $pole[] = gk-nvi $pole[] = gk-mat thank you for all advices! multi-array: --- array(2) { [code]=

[PHP] How to get tree structure into an array?

2003-02-25 Thread Konference
Hi all! i have to solve one problem, but i have no idea how to make this. I have got a tree strucutre in mysql table, id - parent - name. I need make function, which return array which will contains a strucutre of this tree-menu, table example: ID Parent Name -- --

[PHP] How to check acces to modeuls files and dirs

2003-02-11 Thread Konference
Good morning, I have got an anrray: $access[][id]; $access[][name]; and then I browse a mode dirs and I need to check if md5(directory_name) exists in access array. I don't want to browse all dirs a list all subdirs files and chech with access array like this: // check where login user has