noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 26/27: Database_Core add function with the nu


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 26/27: Database_Core add function with the number of cols
Date: Wed, 4 Sep 2019 15:24:58 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 61db6699e035f9c1cb400a80d340163f8408d8c2
Author: Dany De Bontridder <address@hidden>
Date:   Wed Sep 4 21:12:19 2019 +0200

    Database_Core add function with the number of cols
---
 include/lib/database_core.class.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/lib/database_core.class.php 
b/include/lib/database_core.class.php
index c4fb518..8a8d3d2 100644
--- a/include/lib/database_core.class.php
+++ b/include/lib/database_core.class.php
@@ -946,6 +946,14 @@ class DatabaseCore
             $csv->write();
         }
     }
+    /**
+     * Returns the number of columns in a ret
+     * @param handler $p_ret handler to a query
+     */
+    static  function nb_column($p_ret) {
+        return pg_num_fields($p_ret);
+    }
+    
 }
 
 /* test::test_me(); */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]