Hi,brian
Ye I using the PDO with Windows.But I'm not getting what exactly this code does mean how does it useful to me in my case.
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$this->dbObj->closeConnection();
}
This snippet mean close the database connection if the runtime plateform in "Window" Right?
Script runs fine if there is only one stored procedure to be executed using Zend-PDO adapter.But what i want is executing the multiple stored procedure...
Does Zend_db have similar functionality as shown below?
$query ="my stored procedure"
if ($mysqli->multi_query($query)) {
do {
/* store first result set */
if ($result = $mysqli->store_result()) {
while ($row = $result->fetch_assoc()) {
$resultset[]=$row;
}
$result->close();
}
/* print divider */
if ($mysqli->more_results()) {
printf("-----------------\n");
}
} while ($mysqli->next_result());
}
|