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: possible bug in maxdb_stmt_num_rows???: msg#00224

db.maxdb

Subject: RE: possible bug in maxdb_stmt_num_rows???


Hi,

You can find the actual Windows DLLs for MaxDB PHP on http://snaps.php.net. On
this site, the DLLs are build from the latest CVS version several times a day.

Regards,

Thomas

-----Original Message-----
From: Gering, Sascha [mailto:sascha.gering@xxxxxxxxxxxxxx]
Sent: Montag, 24. Januar 2005 14:06
To: maxdb@xxxxxxxxxxxxxxx
Subject: AW: possible bug in maxdb_stmt_num_rows???

Hi again,

thanks for your quick answer.
Unfortunatly I'm developing on a Windows-System.
When will the next windows-dll be released with all the changes I saw in the
cvs?

Best regards,

Sascha Gering

-----Ursprüngliche Nachricht-----
Von: Simenec, Thomas [mailto:thomas.simenec@xxxxxxx]
Gesendet: Montag, 24. Januar 2005 13:25
An: Gering, Sascha
Cc: maxdb@xxxxxxxxxxxxxxx
Betreff: RE: possible bug in maxdb_stmt_num_rows???


Hi,

See http://cvs.php.net/pecl/maxdb for a corrected version that expects
one parameter for maxdb_stmt_num_rows as described in the documentation.

The current MaxDB PHP API does not have the possibility of getting a
result object out of an executed prepared query.

You need not to use maxdb_stmt_store_result in your MaxDB PHP scripts,
for this function was only introduced for compatibility reasons to
MySQL's mysqli extension; it has no functional effect.

Regards,

Thomas Simenec
SAP Labs Berlin

-----Original Message-----
From: Gering, Sascha [mailto:sascha.gering@xxxxxxxxxxxxxx]
Sent: Mittwoch, 19. Januar 2005 16:51
To: maxdb@xxxxxxxxxxxxxxx
Subject: possible bug in maxdb_stmt_num_rows???

Hi,

when I test the example shown in the php-maxdb-documentation (see below)
I get the
following warning:

Warning: maxdb_stmt_num_rows() expects exactly 2 parameters, 1 given in
C:\... on line 20
Number of rows: 0.

In the documentation this function has only one parameter. Where is the
mistake?

And by the way is it possible to retrieve a result object out of a
executed prepared query???

thanks a lot

Sascha


<?php
/* Open a connection */
$link = maxdb_connect("localhost", "my_user", "my_password", "world");

/* check connection */
if (maxdb_connect_errno()) {
printf("Connect failed: %s\n", maxdb_connect_error());
exit();
}

$query = "SELECT Name, CountryCode FROM City ORDER BY Name";
if ($stmt = maxdb_prepare($link, $query)) {

/* execute query */
maxdb_stmt_execute($stmt);

/* store result */
maxdb_stmt_store_result($stmt);

printf("Number of rows: %d.\n", maxdb_stmt_num_rows($stmt));

/* close statement */
maxdb_stmt_close($stmt);
}

/* close connection */
maxdb_close($link);
?>

--
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=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