note 90738 deleted from function.mysql-query by danbrown
| From: | danbrown@php.net | Date: | Thu, 07 May 2009 12:51:04 +0000 |
| Subject: | note 90738 deleted from function.mysql-query by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154311@lists.php.net to get a copy of this message | ||
Note Submitter: marcandrebinder at googlemail dot com
----
You like vsptinf()?
<?php
/**
* Runs a queryf();.
*
* @return mysqli_result
*/
public function queryf() {
$args = func_get_args();
$qry = array_shift($args);
$args = array_map(array($this->_mysqliObject, 'real_escape_string'), $args);
$qry = vsprintf($qry, $args);
$this->_mysqliQuerys[] = $qry;
return $this->_mysqliObject->query($qry);
}
?>