We need to use mysqli for this

and I made this method in app_model.php:

/**
 *  Multi Queries
 *
 **/
public function multi_query($query){
$db =& ConnectionManager::getDataSource($this->useDbConfig);
$return = mysqli_multi_query($db->connection, $query);
do {
if ($result = $db->connection->store_result()) {
$result->free();
}
} while ($db->connection->next_result());
return $return;
}

On Mon, Jan 10, 2011 at 1:44 PM, [email protected] <[email protected]> wrote:

> H
> how to use multiquery in cakephp
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Vivi
http://photos.vr-3d.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to