From e75fcbfde823568d0202761c3e099afddf901028 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 25 Jun 2018 14:15:49 +0200 Subject: lib/mysql.php: mysql_prepare_query() new (but not (yet) needed) --- lib/mysql.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/mysql.php') diff --git a/lib/mysql.php b/lib/mysql.php index 60bfa3a..8255b33 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -19,6 +19,13 @@ function mysql_run_query($query) { return $result; } +function mysql_prepare_query($query) { + global $mysql; + if ( ! $result = $mysql -> prepare($query) ) + die_500( "Prepare failed: " . $mysql -> error ); + return $result; +} + function show_warning_on_offline_slave() { $result = mysql_run_query("SHOW STATUS LIKE \"Slave_running\""); if (($result -> num_rows == 0) || -- cgit v1.2.3-70-g09d2