Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Crash in PHP Module: msg#00200

db.maxdb

Subject: RE: Crash in PHP Module

Hi John,

This is a bug that will be fixed. Workaround: Use maxdb_stmt_bind_result()
immediately after the maxdb_prepare() call.

Regards,

Thomas Simenec
SAP Labs Berlin

-----Original Message-----
From: John Singleton [mailto:jsinglet@xxxxxxxxxxxxxxxxx]
Sent: Donnerstag, 18. November 2004 01:58
To: maxdb
Subject: Crash in PHP Module

Hi All,

I seem to be having a crashing problem with the PHP module for MaxDB. I
am using apache 1.3.9 in Windows XP with MaxDB 7.5.00.19, PHP module
version 7.5.00.19, and PHP 5.0.2. PHP is loaded as a dll. Here is the
code snippet.


$link = maxdb_connect("localhost", "DBA", "DBA", "CH10");

if (!$link) {
printf("Connect failed: %s\n", maxdb_connect_error());
exit();
}



$stmt = maxdb_prepare($link, "SELECT USERNAME FROM USERS WHERE USERNAME=?");


maxdb_stmt_bind_param($stmt, "s", $USERNAME);
$USERNAME = "DBA";

maxdb_stmt_bind_result($stmt, $R_USERNAME); /* this is the trouble line */


I have removed and commented out various lines in this code. When I
leave in the last line, the crash occurs.


Any ideas?

JLS

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=thomas.simenec@xxxxxxx

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo