Graham Anderson | 15 Aug 2007 16:54
Picon

Syntax for Extending ADODB

What is the proper syntax for extending ADODB?

The below gives the fatal error:
Fatal error: Class 'ADONewConnection' not found in /Users/robert/ 
Sites/bandai/php/includes/adodb_setup.php on line 11

many thanks in advance

# invoke the adodb extension class:
require("./defines.php");
include('/path/to/adodb_setup.php'); # extend ADODB
$conn =& new ADODB_Conn();

# extend_adodb.php:
require_once(ROOT_PATH."/path/to/adodb.inc.php");

class ADODB_Conn extends ADONewConnection {
function ADODB_Conn()
  {
	// Class Constructor.
	$this ->  ADONewConnection(DB_TYPE);
	$this ->  Connect(SERVER, USERNAME, PASSWORD, DB);
	$conn->debug=true;
    }
}

# defines.php
define("DB_TYPE","mysql");
define("SERVER","127.0.0.1");
define("DB","my_db");
(Continue reading)

Free Web Tools | 23 Aug 2007 07:40

Internal Verification

Dear Member,

We are so happy you joined Free Web Tools.

Membership Number: 13418493
Temp Login ID: user5853
Your Temp. Password ID: al819

Please keep your account secure by logging in and changing your login info.

Click on the secure link or paste it to your browser: Free Web Tools

Enjoy,
Support Department
Free Web Tools
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
ADodb-general mailing list
ADodb-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/adodb-general
chamath gunasekara | 23 Aug 2007 12:01
Picon

pls help....

Hi all,

          I'm using adodb and I have faced problem. Error message like this...

                              Error Message :pg_fetch_array() [ function.pg-fetch-array]: Unable to jump to row 0 on PostgreSQL result index 35

          I'm using postgresql-8.2 as my database and developing using PHP 5.

I have found several errors those same as like this...

may I know how I resolve this and where is problem is...

If u can give a solution it will help me to do my work as best....

thank u very much...



--
regards,
chamath gunasekara,
http://chamathg.blogspot.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
ADodb-general mailing list
ADodb-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/adodb-general
Duncan McQueen | 30 Aug 2007 16:08
Picon

Adding SQLRelay driver to ADODB

I have recently posted a new project at RentACoder to get a working
SQLRelay driver in ADODB - if anyone is interested:

http://www.rentacoder.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=757451

All code will be contributed back to ADODB of course.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
Ervin Hegedüs | 31 Aug 2007 10:21
Picon
Gravatar

Howto execute function in package with ADOdb in Oracle

hello,

here is a 10.2 SE Oracle on a Linux. From an another machine I connect
to them from PHP, through ADOdb. Most of query's work, but here are
many packages, which have functions and procedures.

I try to execute a function in a package:

<?

$stmt = $db->PrepareSP("
  declare chkpass varchar2(255);
  BEGIN chkpass := ACCESS.check_pass('user', 'secret');
  END;
");

$out = "";

$db->OutParameter($stmt, $out, 'chkpass');
?>

ADOdb connection resourcer is in debug mode. When it runs, it says:

---------------------------------------------------------------------------------------------------------------------------------
OutParameter($stmt, $php_var='', $name='chkpass', $maxLen=4000, $type=false);
Bind: name = chkpass

Warning: ocibindbyname() [function.ocibindbyname]: ORA-01036: illegal
variable name/number in
/path/to/adodb/drivers/adodb-oci8.inc.php on line 921
---------------------------------------------------------------------------------------------------------------------------------
(oci8): declare chkpass varchar2(255); BEGIN chkpass :=
ACCESS.check_pass('user', 'secret'); END;

Howto exec a function in an Oracle package?
(this function gets two parameters: login and password, and gives back
a single char, one of the 'U', 'I', or 'N')

Thank you:

a.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

Gmane