View Single Post
  #3 (permalink)  
Old 03-06-2008, 10:03 AM
Sach_in_webfarm Sach_in_webfarm is offline
Junior Member
 
Join Date: Mar 2008
Posts: 6
Default

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());
}
Reply With Quote