PHP Classes

Canīt get it to work

Recommend this page to a friend!

      ApPHP Data Grid  >  All threads  >  Canīt get it to work  >  (Un) Subscribe thread alerts  
Subject:Canīt get it to work
Summary:Canīt get it to work
Messages:7
Author:Jerson Figueiredo
Date:2012-02-05 14:02:51
Update:2012-02-19 09:44:24
 

  1. Canīt get it to work   Reply   Report abuse  
Picture of Jerson Figueiredo Jerson Figueiredo - 2012-02-05 14:02:52
Hi. I downloaded this class but I can't get it to work.

Most of the code is commented.

Isn't there a sql file so I can create the tables?

I think you should provide the class ready to use. As it is, it won't work.

Best regards.

Jerson Figueiredo

  2. Re: Canīt get it to work   Reply   Report abuse  
Picture of Jack Waterson Jack Waterson - 2012-02-05 15:16:08 - In reply to message 1 from Jerson Figueiredo
I cannot get it to work either, has anybody got it work, if so can they supply a working example?

  3. Re: Canīt get it to work   Reply   Report abuse  
Picture of Aris Lazaridis Aris Lazaridis - 2012-02-13 12:25:53 - In reply to message 1 from Jerson Figueiredo
I was able to make it work with mysql.
great job

my problem is that I cant make it to work with oci8 (oracle).

although I am able to connect with sqlplus through the library it always returns

[nativecode=ORA-12154: TNS:could not resolve the connect identifier specified]

the connection that I use is

$DB_USER='xxxx';
$DB_PASS='xxxx';
$DB_HOST='10.x.x.x:1521';
$DB_NAME='aaaa';

ob_start();
$db_conn = DB::factory('oci8'); /* don't forget to change on appropriate db type */
$result_conn = $db_conn->connect(DB::parseDSN('oci8://'.$DB_USER.':'.$DB_PASS.'@'.$DB_HOST.'/'.$DB_NAME));

Am I doing something wrong?


  4. Re: Canīt get it to work   Reply   Report abuse  
Picture of Tony Timms Tony Timms - 2012-02-14 17:10:52 - In reply to message 1 from Jerson Figueiredo
Hmm, great looking script but I cannot get it to work either and having everything commented out just confuses things even more. Is there no instructions with this?

  5. Re: Canīt get it to work   Reply   Report abuse  
Picture of Chara Miteo Chara Miteo - 2012-02-19 09:42:15 - In reply to message 4 from Tony Timms

  6. Re: Canīt get it to work   Reply   Report abuse  
Picture of Chara Miteo Chara Miteo - 2012-02-19 09:42:43 - In reply to message 4 from Tony Timms

  7. Re: Canīt get it to work   Reply   Report abuse  
Picture of Chara Miteo Chara Miteo - 2012-02-19 09:44:24 - In reply to message 3 from Aris Lazaridis
Problems with oci were fixed in the last versions:
apphp.com/php-datagrid/index.php