@@ -34,6 +34,10 @@ discard block |
||
34 | 34 | return mysqli_close($$link); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param integer $errno |
|
39 | + * @param string $error |
|
40 | + */ |
|
37 | 41 | function tep_db_error($query, $errno, $error) { |
38 | 42 | if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) { |
39 | 43 | error_log('ERROR: [' . $errno . '] ' . $error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG); |
@@ -54,6 +58,9 @@ discard block |
||
54 | 58 | return $result; |
55 | 59 | } |
56 | 60 | |
61 | + /** |
|
62 | + * @param string $table |
|
63 | + */ |
|
57 | 64 | function tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') { |
58 | 65 | if ($action == 'insert') { |
59 | 66 | $query = 'insert into ' . $table . ' ('; |
@@ -190,6 +197,9 @@ discard block |
||
190 | 197 | return mysql_error($link); |
191 | 198 | } |
192 | 199 | |
200 | + /** |
|
201 | + * @param string $charset |
|
202 | + */ |
|
193 | 203 | function mysqli_set_charset($link, $charset) { |
194 | 204 | if ( function_exists('mysql_set_charset') ) { |
195 | 205 | return mysql_set_charset($charset, $link); |
@@ -220,6 +230,9 @@ discard block |
||
220 | 230 | return mysql_error($link); |
221 | 231 | } |
222 | 232 | |
233 | + /** |
|
234 | + * @param integer $type |
|
235 | + */ |
|
223 | 236 | function mysqli_fetch_array($query, $type) { |
224 | 237 | return mysql_fetch_array($query, $type); |
225 | 238 | } |