MySQL Forums
Forum List  »  PHP

Prepared statement problem
Posted by: antimon
Date: March 28, 2006 12:38PM

I use php 5.1.2 and mysql 5.0.19 on Windows XP with apache 2.0.55
I downloaded mysqli extension from
http://dev.mysql.com/downloads/connector/php/

This code does not print anything with these dlls:

####
if ($stmt = $msql->prepare("SELECT NOW()")) {
$stmt->execute();

$stmt->bind_result($col1);

while ($stmt->fetch()) {
printf("%s\n", $col1);
}

$stmt->close();
}
####

But when i switch to the mysqli extension dll which was included in the php package i downloaded from php.net, it works ok.

Any ideas?

I use libmysql.dll from mysql.com.

Options: ReplyQuote


Subject
Written By
Posted
Prepared statement problem
March 28, 2006 12:38PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.