function exec_sql($query, $db_connection) { mysql_query($query, $db_connection) or show_mysql_error($query); }
function try_mysql_query($query, $db) { $result = mysql_query($query, $db) or show_mysql_error($query, mysql_error()); return $result; }