From b22f5456fcabdc53e2e908007d6f89b180d10a63 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 10 Nov 2011 15:14:11 +0000 Subject: [PATCH] Added wrapper functions for mysql_fetch_assoc and mysql_fetch_row --- src/messenger/webim/libs/common.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index 56a7b9f9..d6192b37 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -389,6 +389,15 @@ function db_insert_id($link) return mysql_insert_id($link); } +function db_fetch_row($result) +{ + return mysql_fetch_row($result); +} + +function db_fetch_assoc($result){ + return mysql_fetch_assoc($result); +} + function perform_query($query, $link) { mysql_query($query, $link) or die(' Query failed: ' . db_error($link));