New function skeleton for execution of queries
This commit is contained in:
parent
63b0b05445
commit
28a28f00a4
2 changed files with 6 additions and 2 deletions
|
@ -32,6 +32,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
die();
|
||||||
|
|
||||||
if (sizeof($_SERVER["argv"]) == 0)
|
if (sizeof($_SERVER["argv"]) == 0)
|
||||||
die();
|
die();
|
||||||
|
|
||||||
|
|
|
@ -635,6 +635,10 @@ class dba {
|
||||||
* @return boolean Was the query successfull?
|
* @return boolean Was the query successfull?
|
||||||
*/
|
*/
|
||||||
static public function e($sql) {
|
static public function e($sql) {
|
||||||
|
$args = func_get_args();
|
||||||
|
|
||||||
|
$stmt = self::p();
|
||||||
|
self::close($stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -739,8 +743,6 @@ function dbesc($str) {
|
||||||
// 'user', 1);
|
// 'user', 1);
|
||||||
function q($sql) {
|
function q($sql) {
|
||||||
global $db;
|
global $db;
|
||||||
$args = func_get_args();
|
|
||||||
unset($args[0]);
|
|
||||||
|
|
||||||
if ($db && $db->connected) {
|
if ($db && $db->connected) {
|
||||||
$sql = $db->any_value_fallback($sql);
|
$sql = $db->any_value_fallback($sql);
|
||||||
|
|
Loading…
Reference in a new issue