{"id":81,"date":"2025-11-04T00:56:59","date_gmt":"2025-11-04T00:56:59","guid":{"rendered":"https:\/\/5047878.net\/blog\/?p=81"},"modified":"2025-11-04T00:59:03","modified_gmt":"2025-11-04T00:59:03","slug":"php-7-%ec%9d%b4%ec%83%81%ec%97%90%ec%84%9c-%ec%88%98%ec%a0%95%ec%97%86%ec%9d%b4-%ea%b8%b0%ec%a1%b4-mysql_connect-mysql_query-mysql_fetch_array-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/5047878.net\/?p=81","title":{"rendered":"PHP 7 \uc774\uc0c1\uc5d0\uc11c \uc218\uc815\uc5c6\uc774 \uae30\uc874 mysql_connect(), mysql_query(), mysql_fetch_array() \uc0ac\uc6a9\ud558\uae30!!"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\ud83e\udde9 PHP 7 \uc774\uc0c1\uc5d0\uc11c <code>mysql_connect()<\/code> \uc624\ub958 \ud574\uacb0\ubc95 \u2014 mysql-wrapper.php\ub85c \uc644\ubcbd \ud638\ud658\ud558\uae30<\/h2>\n\n\n\n<p>PHP 7 \uc774\ud6c4\ub85c \uae30\uc874\uc758 <code>mysql_*<\/code> \uacc4\uc5f4 \ud568\uc218\ub4e4\uc774 \uc644\uc804\ud788 \uc81c\uac70\ub418\uba74\uc11c,<br>\uae30\uc874\uc5d0 <code>mysql_connect()<\/code>, <code>mysql_query()<\/code>, <code>mysql_fetch_array()<\/code> \ub4f1\uc744 \uc0ac\uc6a9\ud558\ub358<br>\ub808\uac70\uc2dc \ucf54\ub4dc\ub4e4\uc740 \ubaa8\ub450 <strong>Fatal error<\/strong>\ub97c \ubc1c\uc0dd\uc2dc\ud0a4\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u274c Fatal error: Uncaught Error: Call to undefined function mysql_connect()<\/p>\n<\/blockquote>\n\n\n\n<p>\uc774\ub7f0 \uc0c1\ud669\uc5d0\uc11c \u201c\uc608\uc804 \ucf54\ub4dc\ub97c \ub2e4 <code>mysqli_*<\/code>\ub85c \ubc14\uafb8\ub294 \uac74 \ub108\ubb34 \ub9ce\uc740 \uc791\uc5c5\uc774\ub2e4\u2026\u201d<br>\ub77c\uace0 \uace0\ubbfc\ud558\uc2e0 \uc801 \uc788\uc73c\uc2e0\uac00\uc694?<\/p>\n\n\n\n<p>\uadf8\ub7f4 \ub54c \uc720\uc6a9\ud55c \ud574\uacb0\ucc45\uc774 \ubc14\ub85c <strong><code>mysql-wrapper.php<\/code><\/strong> \uc785\ub2c8\ub2e4.<br>\uc774 \ud30c\uc77c \ud558\ub098\ub9cc \ucd94\uac00\ud558\uba74, <strong>\uad6c\ud615 MySQL \ud568\uc218\ub4e4\uc774 \uadf8\ub300\ub85c \ub3d9\uc791<\/strong>\ud558\ub3c4\ub85d \ub9cc\ub4e4\uc5b4\uc90d\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\udde0 mysql-wrapper.php\ub780?<\/h3>\n\n\n\n<p><code>mysql-wrapper.php<\/code>\ub294 PHP 7 \uc774\uc0c1 \ubc84\uc804\uc5d0\uc11c \uc81c\uac70\ub41c <code>mysql_*<\/code> \ud568\uc218\ub4e4\uc744<br><code>mysqli_*<\/code> \ud568\uc218\ub85c <strong>\uc790\ub3d9 \ub9e4\ud551(\uc5d0\ubbac\ub808\uc774\uc158)<\/strong> \ud574\uc8fc\ub294 \ud638\ud658\uc131 \uc2a4\ud06c\ub9bd\ud2b8\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uc989, \uc608\uc804 PHP 5.x \ucf54\ub4dc\ucc98\ub7fc \uc774\ub807\uac8c \uc368\ub3c4:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$conn = mysql_connect(\"localhost\", \"root\", \"1234\");\nmysql_select_db(\"testdb\", $conn);\n$result = mysql_query(\"SELECT * FROM users\");\nwhile ($row = mysql_fetch_assoc($result)) {\n    echo $row&#91;'name'].\"&lt;br&gt;\";\n}\n<\/code><\/pre>\n\n\n\n<p>PHP 7~8 \ud658\uacbd\uc5d0\uc11c\ub3c4 <strong>\uc815\uc0c1 \uc791\ub3d9<\/strong>\ud558\uac8c \ub429\ub2c8\ub2e4.<br>\ub0b4\ubd80\uc801\uc73c\ub85c\ub294 <code>mysqli_connect()<\/code>, <code>mysqli_query()<\/code> \ub4f1\uc774 \ud638\ucd9c\ub418\uc5b4 \ucc98\ub9ac\ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2699\ufe0f \ub3d9\uc791 \uc6d0\ub9ac<\/h3>\n\n\n\n<p>\uc774 \uc2a4\ud06c\ub9bd\ud2b8\ub294 PHP\uc758 <code>mysqli<\/code> \ud655\uc7a5\uc744 \uae30\ubc18\uc73c\ub85c \ud558\uba70,<br>\uac01 \uad6c\ud615 \ud568\uc218\ub4e4\uc744 \uc0c8\ub85c\uc6b4 \ud568\uc218\ub85c <strong>\uc5d0\ubbac\ub808\uc774\ud2b8(\ubaa8\ubc29)<\/strong> \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\uad6c\ud615 \ud568\uc218<\/th><th>\ub0b4\ubd80 \ub300\uccb4 \ud568\uc218<\/th><\/tr><\/thead><tbody><tr><td><code>mysql_connect()<\/code><\/td><td><code>mysqli_connect()<\/code><\/td><\/tr><tr><td><code>mysql_query()<\/code><\/td><td><code>mysqli_query()<\/code><\/td><\/tr><tr><td><code>mysql_fetch_array()<\/code><\/td><td><code>mysqli_fetch_array()<\/code><\/td><\/tr><tr><td><code>mysql_fetch_assoc()<\/code><\/td><td><code>mysqli_fetch_assoc()<\/code><\/td><\/tr><tr><td><code>mysql_num_rows()<\/code><\/td><td><code>mysqli_num_rows()<\/code><\/td><\/tr><tr><td><code>mysql_error()<\/code><\/td><td><code>mysqli_error()<\/code><\/td><\/tr><tr><td><code>mysql_insert_id()<\/code><\/td><td><code>mysqli_insert_id()<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\uc774\uc678\uc5d0\ub3c4 <code>mysql_free_result()<\/code>, <code>mysql_real_escape_string()<\/code> \ub4f1<br>\ub300\ubd80\ubd84\uc758 \ud568\uc218\uac00 \uc644\ubcbd\ud788 \uad6c\ud604\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddf0 \uc0ac\uc6a9 \ubc29\ubc95<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\uc544\ub798\uc758 <code>mysql-wrapper.php<\/code> \ud30c\uc77c\uc744 \ub2e4\uc6b4\ub85c\ub4dc\ud558\uac70\ub098 \ucf54\ub4dc\ub85c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\ud504\ub85c\uc81d\ud2b8 \ub0b4\uc5d0 \uc5c5\ub85c\ub4dc\ud569\ub2c8\ub2e4. (\uc608: <code>\/lib\/mysql-wrapper.php<\/code>)<\/li>\n\n\n\n<li>\uae30\uc874 PHP \ucf54\ub4dc \uc0c1\ub2e8\uc5d0 \ub2e4\uc74c \ud55c \uc904\ub9cc \ucd94\uac00\ud558\uc138\uc694: <code>require_once 'mysql-wrapper.php';<\/code><\/li>\n\n\n\n<li>\ub098\uba38\uc9c0 \ucf54\ub4dc\ub294 \uc218\uc815 \uc5c6\uc774 \uadf8\ub300\ub85c \uc0ac\uc6a9 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\ude80 \uc608\uc81c \ucf54\ub4dc<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nrequire_once 'mysql-wrapper.php';\n\n$conn = mysql_connect(\"localhost\", \"root\", \"1234\");\nmysql_select_db(\"testdb\", $conn);\n\n$result = mysql_query(\"SELECT * FROM users WHERE level = 1\");\nwhile ($row = mysql_fetch_assoc($result)) {\n    echo $row&#91;'username'].\" \/ \".$row&#91;'email'].\"&lt;br&gt;\";\n}\n?&gt;\n<\/code><\/pre>\n\n\n\n<p>\uc774\ub807\uac8c \uc791\uc131\ub41c \uc608\uc804 PHP 5 \ucf54\ub4dc\ub3c4 PHP 8.3 \ud658\uacbd\uc5d0\uc11c \ubb38\uc81c\uc5c6\uc774 \uc2e4\ud589\ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u26a0\ufe0f \uc8fc\uc758\ud560 \uc810<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc774 \uc2a4\ud06c\ub9bd\ud2b8\ub294 <strong>\ud638\ud658\uc131 \ubaa9\uc801<\/strong>\uc785\ub2c8\ub2e4.<br>\uc0c8 \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c\ub294 <code>mysqli<\/code>\ub098 <code>PDO<\/code>\ub97c \uc9c1\uc811 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc548\uc804\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code>mysql_real_escape_string()<\/code> \uac19\uc740 \uad6c\ubb38\uc740 \uc5ec\uc804\ud788 \uc218\ub3d9 \ucc98\ub9ac \ubc29\uc2dd\uc774\ubbc0\ub85c,<br><strong>SQL Injection \ubc29\uc5b4\uac00 \uc644\ubcbd\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/strong><\/li>\n\n\n\n<li>\uc624\ub798\ub41c \uad6c\uc870\uc758 CMS(\uc608: \uad6c\ud615 XE, Allplan, \uc790\uccb4 \uc1fc\ud551\ubab0 \uc194\ub8e8\uc158 \ub4f1) \uc720\uc9c0\uc6a9\uc73c\ub85c \uc801\ud569\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udca1 \ud301: \uc7a5\uae30\uc801\uc73c\ub85c\ub294 <code>mysqli<\/code>\ub85c \uc774\uc804\ud558\uc138\uc694<\/h3>\n\n\n\n<p>\uc774 wrapper\ub294 \u201c\uc784\uc2dc \ube0c\ub9bf\uc9c0\u201d \uc5ed\ud560\uc785\ub2c8\ub2e4.<br>\ud504\ub85c\uc81d\ud2b8\ub97c \uc548\uc815\ud654\uc2dc\ud0a8 \ud6c4 \uc544\ub798\ucc98\ub7fc \uc9c1\uc811 <code>mysqli<\/code> \ubb38\ubc95\uc73c\ub85c \ub9c8\uc774\uadf8\ub808\uc774\uc158\ud558\ub294 \uac83\uc744 \ucd94\ucc9c\ub4dc\ub9bd\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\uae30\uc874 \ucf54\ub4dc<\/th><th>\uac1c\uc120 \ucf54\ub4dc<\/th><\/tr><\/thead><tbody><tr><td><code>mysql_connect()<\/code><\/td><td><code>$conn = mysqli_connect(\"localhost\", \"user\", \"pass\", \"db\");<\/code><\/td><\/tr><tr><td><code>mysql_query()<\/code><\/td><td><code>mysqli_query($conn, \"SELECT * FROM table\");<\/code><\/td><\/tr><tr><td><code>mysql_fetch_assoc()<\/code><\/td><td><code>mysqli_fetch_assoc($result);<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 \uacb0\ub860<\/h3>\n\n\n\n<p><code>mysql-wrapper.php<\/code>\ub294 PHP 7 \uc774\uc0c1\uc5d0\uc11c<br>*<em>\uae30\uc874 mysql_<\/em> \uae30\ubc18 \uc18c\uc2a4\ub4e4\uc744 \uadf8\ub300\ub85c \uc0b4\ub9b4 \uc218 \uc788\ub294 \uad6c\uc870\uc801 \ud574\ubc95**\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uc624\ub798\ub41c PHP \uc1fc\ud551\ubab0, \uc0ac\ub0b4 \uc2dc\uc2a4\ud15c, \ub808\uac70\uc2dc ERP\ub97c \uc6b4\uc601 \uc911\uc774\ub77c\uba74<br>\uc774 \ud30c\uc77c \ud558\ub098\ub85c \ub9c8\uc774\uadf8\ub808\uc774\uc158 \ubd80\ub2f4\uc744 \ub300\ud3ed \uc904\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\ud83d\udd17 \ucd94\ucc9c \uc0ac\uc6a9 \uc608: \uad6c\ud615 PHP 5 \uae30\ubc18 \uc194\ub8e8\uc158\uc744 CentOS 8 \/ Ubuntu 22 \ud658\uacbd\uc73c\ub85c \uc774\uc804\ud560 \ub54c<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83e\uddfe \uc694\uc57d<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2705 PHP 7~8\uc5d0\uc11c\ub3c4 <code>mysql_*<\/code> \ud568\uc218 \uc0ac\uc6a9 \uac00\ub2a5<\/li>\n\n\n\n<li>\u2699\ufe0f \ub0b4\ubd80\uc801\uc73c\ub85c <code>mysqli<\/code> \ud655\uc7a5\uc73c\ub85c \uc644\ubcbd \ub9e4\ud551<\/li>\n\n\n\n<li>\u26a0\ufe0f \ubcf4\uc548 \uae30\ub2a5\uc740 \ucde8\uc57d\ud558\ubbc0\ub85c \uc810\uc9c4\uc801 \uc804\ud658 \ud544\uc694<\/li>\n\n\n\n<li>\ud83e\uddf0 \uae30\uc874 \ucf54\ub4dc \uc218\uc815 \uc5c6\uc774 \ubc14\ub85c \ud638\ud658<\/li>\n<\/ul>\n\n\n\n<p><code><strong>mysql-wrapper.php<\/strong><\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\nfunction is_myresource ($o, $onlyres = false) {\nif ( extension_loaded ('mysql') ) {\nif ( ! is_resource ($o) )\nreturn false;    \n\n$cname = get_resource_type ($o);\n    if ( $cname != 'mysql link' &amp;&amp; $cname != 'mysql result' )\n        return false;\n\n    if ( $onlyres &amp;&amp; $cname != 'mysql result' )\n        return false;\n\n    unset ($cname);\n    return true;\n}\n\nif ( ! is_object ($o) )\n    return false;\n\n$cname = get_class ($o);\nif ( $cname != 'mysqli' &amp;&amp; $cname != 'mysqli_result' )\n    return false;\n\nif ( $onlyres &amp;&amp; $cname != 'mysqli_result' )\n    return false;\n\nunset ($cname);\nreturn true;\n}\n\nif ( ! function_exists ('mysql_connect') ) {\nif ( ! extension_loaded ('mysqli') ) {\n    throw new Exception (E_ERROR, 'MySQL wrapper must need mysqli extension');\n}\n\nif ( ! function_exists ('___ini_get') ) {\n    function ___ini_get ($v) { return ini_get ($v); }\n}\n\n$_MySQLCON_ = null;\n$_MyConnErr_ = null;\n\ndefine ('MYSQL_CLIENT_COMPRESS',     MYSQLI_CLIENT_COMPRESS);\ndefine ('MYSQL_CLIENT_IGNORE_SPACE', MYSQLI_CLIENT_IGNORE_SPACE);\ndefine ('MYSQL_CLIENT_INTERACTIVE',  MYSQLI_CLIENT_INTERACTIVE);\ndefine ('MYSQL_CLIENT_SSL',          MYSQLI_CLIENT_SSL);\ndefine ('MYSQL_ASSOC',               MYSQLI_ASSOC);\ndefine ('MYSQL_BOTH',                MYSQLI_BOTH);\ndefine ('MYSQL_NUM',                 MYSQLI_NUM);\n\nif ( ! defined ('MYSQLI_NO_DEFAULT_VALUE_FLAG') )\n    define ('MYSQLI_NO_DEFAULT_VALUE_FLAG', -1);\n\nif ( ! defined ('MYSQLI_ON_UPDATE_NOW_FLAG') )\n    define ('MYSQLI_ON_UPDATE_NOW_FLAG', -1);\n\n$msyql_filed_flags = array (\n    MYSQLI_NOT_NULL_FLAG,\n    MYSQLI_PRI_KEY_FLAG,\n    MYSQLI_UNIQUE_KEY_FLAG,\n    MYSQLI_MULTIPLE_KEY_FLAG,\n    MYSQLI_BLOB_FLAG,\n    MYSQLI_UNSIGNED_FLAG,\n    MYSQLI_ZEROFILL_FLAG,\n    MYSQLI_AUTO_INCREMENT_FLAG,\n    MYSQLI_TIMESTAMP_FLAG,\n    MYSQLI_SET_FLAG,\n    MYSQLI_NUM_FLAG,\n    MYSQLI_PART_KEY_FLAG,\n    MYSQLI_GROUP_FLAG,\n    MYSQLI_ENUM_FLAG,\n    MYSQLI_BINARY_FLAG,\n    MYSQLI_NO_DEFAULT_VALUE_FLAG,\n    MYSQLI_ON_UPDATE_NOW_FLAG\n);\n\n$mysql_data_type_hash = array (\n    0   => 'real',       \/\/ decimal\n    1   => 'int',        \/\/ tiny int\n    2   => 'int',        \/\/ smallint\n    3   => 'int',        \/\/ int\n    4   => 'real',       \/\/ float\n    5   => 'real',       \/\/ double\n    6   => 'null',       \/\/ null\n    7   => 'timestamp',  \/\/ timestamp\n    8   => 'int',        \/\/ bigint\n    9   => 'int',        \/\/ mediumint\n    10  => 'date',       \/\/ date\n    11  => 'time',       \/\/ time\n    12  => 'datetime',   \/\/ datetime\n    13  => 'year',       \/\/ year\n    14  => 'date',       \/\/ newdate\n    15  => 'string',     \/\/ varchar\n    16  => 'int',        \/\/ bit\n    246 => 'real',       \/\/ newdecimal\n    247 => 'string',     \/\/ enum\n    248 => 'string',     \/\/ set\n    249 => 'blob',       \/\/ tibyblob\n    250 => 'blob',       \/\/ mediumblob\n    251 => 'blob',       \/\/ longblob\n    252 => 'blob',       \/\/ blob\n    253 => 'string',     \/\/ string\n    254 => 'string',     \/\/ string\n    246 => 'real'        \/\/ decimal\n);\n\n\n\nfunction mysql_affected_rows (&amp;$c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n    return mysqli_affected_rows ($c);\n}\n\nfunction mysql_client_encoding (&amp;$c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n    return mysqli_character_set_name ($c);\n}\n\n\n\nfunction mysql_close (&amp;$c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n    return mysqli_close ($c);\n}\n\nfunction mysql_connect ($host = null, $user = null, $pass = null, $link = false, $flag = 0) {\n    $GLOBALS&#91;'_MyConnErr_'] = null;\n\n    if ( $host === null )\n        $host = ___ini_get ('mysqli.default_host');\n    if ( $user === null )\n        $user = ___ini_get ('mysqli.default_user');\n    if ( $pass === null )\n        $pass = ___ini_get ('mysqli.default_pw');\n\n    $persistant = false;\n    $socket = null;\n    $port = ___ini_get ('mysqli.default_port');\n\n    if ( $host&#91;0] === ':' ) {\n        $socket = substr ($host, 1);\n        $host = 'localhost';\n    } else {\n        if ( preg_match ('\/^p:\/', $host) ) {\n            $persistant = true;\n            $host = substr ($host, 2);\n        }\n\n        if ( preg_match ('\/^(&#91;^:]+):(&#91;\\d]+)$\/', $host, $m) ) {\n            $host = $m&#91;1];\n            $port = $m&#91;2];\n        }\n    }\n\n    if ( $persistant === true )\n        $host = 'p:' . $host;\n\n    $c = mysqli_connect ($host, $user, $pass, '', $port, $socket);\n    $GLOBALS&#91;'_MyConnErr_'] = error_get_last ();\n\n    #if ( $GLOBALS&#91;'_MySQLCON_'] === null &amp;&amp; is_myresource ($c) )\n    if ( is_myresource ($c) )\n        $GLOBALS&#91;'_MySQLCON_'] = &amp;$c;\n\n    return $c;\n}\n\nfunction mysql_create_db ($name, $c = null) {\n    if ( ($c = mysql_global_resource ($c, 2 - func_num_args ())) == null )\n        return;\n\n    $name = trim ($name);\n\n    if ( ! $name )\n        return false;\n\n    return mysqli_query ($c, 'CREATE DATABASE ' . $name);\n}\n\nfunction mysql_createdb ($name, $c = null) {\n    return mysql_create_db ($name, $c);\n}\n\nfunction mysql_data_seek ($result, $offset) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $offset &lt; 0 || $offset >= $result->num_rows ) {\n        $msg = sprintf ('Unable to jump to row %ld on MySQL result index %d', $offset, $result);\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    return mysqli_data_seek ($result, $offset);\n}\n\nfunction mysql_db_name ($result, $row, $field = 'Database') {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $row &lt; 0 || $row >= $result->num_rows ) {\n        $msg = sprintf ('Unable to jump to row %ld on MySQL result index %d', $row, $result);\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    mysqli_data_seek ($result, $row);\n    if ( ! ($res = mysqli_fetch_object ($result)) )\n        return false;\n\n    return $res->{$field};\n}\n\nfunction mysql_db_query ($db, $query, $c = null) {\n    if ( ($c = mysql_global_resource ($c, 3 - func_num_args ())) == null )\n        return;\n\n    $curdb = mysql_get_current_database ($c);\n    if ( mysqli_select_db ($c, $db) === false )\n        return false;\n\n    $r = mysqli_query ($c, $query);\n\n    if ($curdb !== null)\n        mysqli_select_db($c, $curdb);\n\n    return $r;\n}\n\nfunction mysql_drop_db ($db, $c = null) {\n    if ( ($c = mysql_global_resource ($c, 2 - func_num_args ())) == null )\n        return;\n\n    $db = trim ($db);\n    if ( ! $db )\n        return false;\n\n    return mysqli_query ($c, sprintf ('DROP DATABASE %s', $db));\n}\n\nfunction mysql_errno ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args (), true)) == null )\n        return -1;\n\n    return mysqli_errno ($c);\n}\n\nfunction mysql_error ($c = null) {\n    $c = mysql_global_resource ($c, 1 - func_num_args (), true);\n\n    if ( ! is_myresource ($c) ) {\n        if ( is_array ($GLOBALS&#91;'_MyConnErr_']) &amp;&amp; trim ($GLOBALS&#91;'_MyConnErr_']&#91;'message']) ) {\n            preg_match ('\/&#91;a-z_]+\\(\\):\\s+\\(&#91;^)]+\\):\\s+(.+)\/i', $GLOBALS&#91;'_MyConnErr_']&#91;'message'], $msg);\n            return $msg&#91;1];\n        }\n        return null;\n    }\n\n    return mysqli_error ($c);\n}\n\n\nif ( ! function_exists ('mysql_escape_string') ) {\n\n    function mysql_escape_string ($escape) {\n        return mysqli_real_escape_string ($GLOBALS&#91;'_MySQLCON_'], $escape);\n    }\n\n}\n\n\nfunction mysql_fetch_array ($result, $type = MYSQLI_BOTH) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    $r = mysqli_fetch_array ($result, $type);\n    if ( $r === null )\n        $r = false;\n\n    return $r;\n}\n\nfunction mysql_fetch_assoc ($result) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    return mysql_fetch_array ($result, MYSQLI_ASSOC);\n}\n\nfunction mysql_fetch_field ($result, $offset = null) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $offset !== null ) {\n        if ( $offset &lt; 0 || $offset >= $result->field_count ) {\n            $msg = sprintf ('Unable to jump to field %ld on MySQL result index %d', $offset, $result);\n            trigger_error (\n                mysql_trigger_msg ($msg, current (debug_backtrace ())),\n                E_USER_WARNING\n            );\n            return false;\n        }\n        $res = mysqli_fetch_field_direct ($result, $offset);\n    } else\n        $res = mysqli_fetch_field ($result);\n\n    if ( $res === false )\n        return false;\n\n    $r = (object) array (\n        'name'         => $res->name,\n        'table'        => $res->table,\n        'def'          => '', \/\/ default value\n        'max_length'   => $res->max_length,\n        'not_null'     => ($res->flags &amp; MYSQLI_NOT_NULL_FLAG) ? 1 : 0,\n        'primary_key'  => ($res->flags &amp; MYSQLI_PRI_KEY_FLAG) ? 1 : 0,\n        'unique_key'   => ($res->flags &amp; MYSQLI_UNIQUE_KEY_FLAG) ? 1 : 0,\n        'multiple_key' => ($res->flags &amp; MYSQLI_MULTIPLE_KEY_FLAG) ? 1 : 0,\n        'numeric'      => ($res->flags &amp; MYSQLI_NUM_FLAG) ? 1 : 0,\n        'blob'         => ($res->flags &amp; MYSQLI_BLOB_FLAG) ? 1 : 0,\n        'type'         => $GLOBALS&#91;'mysql_data_type_hash']&#91;$res->type],\n        'unsigned'     => ($res->flags &amp; MYSQLI_UNSIGNED_FLAG) ? 1 : 0,\n        'zerofill'     => ($res->flags &amp; MYSQLI_ZEROFILL_FLAG) ? 1 : 0\n\n    );\n\n    \/\/ exception\n    if ( $res->flags === 0 ) \/\/ decimal type\n        $r->numeric = 1;\n\n    if ( $r->type == 'timestamp' )\n        $r->numeric = 1;\n\n    return $r;\n}\n\nfunction mysql_fetch_lengths ($result) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    return mysqli_fetch_lengths ($result);\n}\n\nfunction mysql_fetch_object ($result, $classname = null, $params = null) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $classname !== null ) {\n        if ( ! class_exists ($classname) ) {\n            $msg = sprintf ('Class \\'%s\\' not found', $classname);\n            trigger_error (\n                mysql_trigger_msg ($msg, current (debug_backtrace ())),\n                E_USER_WARNING\n            );\n            return false;\n        }\n\n        if ( $params !== null ) {\n            if ( ! is_array ($params) ) {\n                $msg = 'Argument 3 passed to mysql_fetch_object() must be of the type array';\n                trigger_error (\n                    mysql_trigger_msg ($msg, current (debug_backtrace ())),\n                    E_USER_WARNING\n                );\n                return false;\n            }\n            $r = mysqli_fetch_object ($result, $classname, $params);\n        } else\n            $r = mysqli_fetch_object ($result, $classname);\n    } else\n        $r = mysqli_fetch_object ($result);\n\n    return ($r === null) ? false : $r;\n}\n\nfunction mysql_fetch_row ($result) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    $r = mysqli_fetch_row ($result);\n    return ($r === null ) ? false : $r;\n}\n\nfunction mysql_field_flags ($result, $offset) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $offset &lt; 0 || $offset >= $result->field_count ) {\n        $msg = sprintf ('Unable to jump to field %ld on MySQL result index %d', $offset, $result);\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( ($r = mysqli_fetch_field_direct ($result, $offset)) === false ) {\n        return false;\n    }\n\n    $res = false;\n    foreach ( $GLOBALS&#91;'msyql_filed_flags'] as $flag ) {\n        #printf (\"#### {$r->flags} : {$flag} => %d\\n\", ($r->flags &amp; $flag));\n        if ( ! ($r->flags &amp; $flag) )\n            continue;\n\n        switch ( $flag ) {\n            case MYSQLI_NOT_NULL_FLAG :\n                $res .= 'not_null '; break;\n            case MYSQLI_PRI_KEY_FLAG :\n                $res .= 'primary_key '; break;\n            case MYSQLI_UNIQUE_KEY_FLAG :\n                $res .= 'unique_key '; break;\n            case MYSQLI_MULTIPLE_KEY_FLAG :\n                $res .= 'multiple_key '; break;\n            case MYSQLI_BLOB_FLAG :\n                $res .= 'blob '; break;\n            case MYSQLI_UNSIGNED_FLAG :\n                $res .= 'unsigned '; break;\n            case MYSQLI_ZEROFILL_FLAG :\n                $res .= 'zerofill '; break;\n            case MYSQLI_AUTO_INCREMENT_FLAG :\n                $res .= 'auto_increment '; break;\n            case MYSQLI_TIMESTAMP_FLAG :\n                $res .= 'timestamp '; break;\n            case MYSQLI_SET_FLAG :\n                $res .= 'set '; break;\n                \/\/case MYSQLI_NUM_FLAG :\n                \/\/  $res .= 'numeric '; break;\n            case MYSQLI_PART_KEY_FLAG :\n                $res .= 'part_key '; break;\n                \/\/case MYSQLI_GROUP_FLAG :\n                \/\/  $res .= 'group '; break;\n            case MYSQLI_ENUM_FLAG :\n                $res .= 'enum '; break;\n            case MYSQLI_BINARY_FLAG :\n                $res .= 'binary '; break;\n                \/\/case MYSQLI_NO_DEFAULT_VALUE_FLAG :\n                \/\/  $res .= 'no_default_value '; break;\n            case MYSQLI_ON_UPDATE_NOW_FLAG :\n                $res .= 'on_update_now '; break;\n        }\n    }\n\n\n    return rtrim ($res);\n}\n\nfunction mysql_field_len ($result, $offset) {\n    if ( ($r = mysqli_mysqli_fetch_field_direct ($result, $offset)) === false )\n        return false;\n\n    return $r->length;\n}\n\nfunction mysql_field_name ($result, $offset) {\n    if ( ($r = mysqli_mysqli_fetch_field_direct ($result, $offset)) === false )\n        return false;\n\n    return $r->name;\n}\n\nfunction mysql_field_seek ($result, $offset) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( ! isset ($offset) ) {\n        $msg = sprintf ('expects parameter 2 to be offset value');\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $offset &lt; 0 || $offset >= mysqli_num_fields ($result) ) {\n        $msg = sprintf ('Unable to jump to field %ld on MySQL result index %d', $offset, $result);\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    return mysqli_field_seek ($result, $offset);\n}\n\nfunction mysql_field_table ($result, $offset) {\n    if ( ($r = mysqli_mysqli_fetch_field_direct ($result, $offset)) === false )\n        return false;\n\n    return $r->table;\n}\n\nfunction mysql_field_type ($result, $offset) {\n    if ( ($r = mysqli_mysqli_fetch_field_direct ($result, $offset)) === false )\n        return false;\n\n    return $GLOBALS&#91;'mysql_data_type_hash']&#91;$r->type];\n}\n\nfunction mysql_free_result ($result) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    mysqli_free_result ($result);\n    return true;\n}\n\nfunction mysql_get_client_info () {\n    return mysqli_get_client_info ($GLOBALS&#91;'_MySQLCON_']);\n}\n\nfunction mysql_get_host_info ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_get_host_info ($c);\n}\n\nfunction mysql_get_proto_info ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_get_proto_info ($c);\n}\n\nfunction mysql_get_server_info ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_get_server_info ($c);\n}\n\nfunction mysql_info ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_info ($c);\n}\n\nfunction mysql_insert_id ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_insert_id ($c);\n}\n\nfunction mysql_list_dbs ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_query ($c, 'SHOW DATABASES');\n}\n\nfunction mysql_list_fields ($db, $table, $c = null) {\n    if ( ($c = mysql_global_resource ($c, 3 - func_num_args ())) == null )\n        return;\n\n    $r = mysql_db_query ($db, sprintf ('SELECT * FROM %s LIMIT 0', $table), $c);\n\n    return $r;\n}\n\nfunction mysql_list_processes ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_query ($c, 'SHOW PROCESSLIST');\n}\n\nfunction mysql_list_tables ($database, $c = null) {\n    if ( ($c = mysql_global_resource ($c, 2 - func_num_args ())) == null )\n        return;\n\n    return mysqli_query ($c, sprintf ('SHOW TABLES FROM %s', $database));\n}\n\nfunction mysql_num_fields ($result) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n    return mysqli_num_fields ($result);\n}\n\nfunction mysql_num_rows ($result) {\n    if ( ! is_myresource ($result, true) ) {\n        trigger_error (\n            mysql_trigger_msg(\n                'supplied resource is not a valid MySQL result resource',\n                current (debug_backtrace ())\n            ),\n            E_USER_ERROR\n        );\n        return false;\n    }\n\n    return mysqli_num_rows ($result);\n}\n\nfunction mysql_pconnect ($host = null, $user = null, $pass = null, $link = false, $flag = 0) {\n    return mysql_connect ('p:' . $host, $user, $pass, $link, $flag);\n}\n\nfunction mysql_ping ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_ping ($c);\n}\n\nfunction mysql_query ($query, $c = null) {\n    if ( ($c = mysql_global_resource ($c, 2 - func_num_args ())) == null )\n        return;\n\n    return mysqli_query ($c, $query);\n}\n\n\nif ( ! function_exists ('mysql_real_escape_string') ) {\n\n    function mysql_real_escape_string ($escape, $c = null) {\n        if (($c = mysql_global_resource ($c, 2 - func_num_args())) == null )\n            return;\n\n        return mysqli_real_escape_string($c, $escape);\n    }\n\n}\n\n\nfunction mysql_result ($result, $row, $field = 0) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $row &lt; 0 || $row >= $result->num_rows ) {\n        $msg = sprintf ('Unable to jump to row %ld on MySQL result index %d', $row, $result);\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $field &lt; 0 || $field >= $result->field_count ) {\n        $msg = sprintf ('Unable to jump to field %ld on MySQL result index %d', $field, $result);\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    $res = &amp;$result;\n\n    mysqli_data_seek ($res, $row);\n    $r = mysqli_fetch_array ($res, MYSQLI_NUM);\n\n    return $r&#91;$field];\n}\n\nfunction mysql_select_db ($db, $c = null) {\n    if ( ($c = mysql_global_resource ($c, 2 - func_num_args ())) == null )\n        return;\n    return mysqli_select_db ($c, $db);\n}\n\nfunction mysql_set_charset ($charset, $c = null) {\n    if ( ($c = mysql_global_resource ($c, 2 - func_num_args ())) == null )\n        return;\n\n    return mysqli_set_charset ($c, $charset);\n}\n\nfunction mysql_stat ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_stat ($c);\n}\n\nfunction mysql_tablename ($result, $offset) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            __FUNCTION__, gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $offset &lt; 0 || $offset >= $result->num_rows ) {\n        $msg = sprintf ('Unable to jump to row %ld on MySQL result index %d', $offset, $result);\n        trigger_error (\n            mysql_trigger_msg ($msg, current (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    mysqli_data_seek ($result, $offset);\n    $r = mysqli_fetch_array ($result, MYSQLI_NUM);\n\n    return $r&#91;0];\n}\n\nfunction mysql_thread_id ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    return mysqli_thread_id ($c);\n}\n\nfunction mysql_unbuffered_query ($query, $c = null) {\n    if ( ($c = mysql_global_resource ($c, 2 - func_num_args ())) == null )\n        return;\n\n    return mysqli_query ($c, $query, MYSQLI_USE_RESULT);\n}\n\nfunction mysql_get_current_database ($c = null) {\n    if ( ($c = mysql_global_resource ($c, 1 - func_num_args ())) == null )\n        return;\n\n    $r = mysqli_query ($c, 'SELECT DATABASES() AS curdb');\n    if ( ! is_object ($r) )\n        return null;\n\n\n    $row = mysqli_fetch_object ($r);\n    return ($row->curdb == 'NULL') ? null : $row->curdb;\n}\n\nfunction mysqli_mysqli_fetch_field_direct ($result, $offset) {\n    if ( ! is_myresource ($result, true) ) {\n        $msg = sprintf (\n            'expects parameter 1 to be mysql result object, %s given',\n            gettype ($result)\n        );\n        trigger_error (\n            mysql_trigger_msg ($msg, next (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( ! isset ($offset) ) {\n        $msg = sprintf ('expects parameter 2 to be offset value');\n        trigger_error (\n            mysql_trigger_msg ($msg, next (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( $offset &lt; 0 || $offset >= $result->field_count ) {\n        $msg = sprintf ('Unable to jump to field %ld on MySQL result index %d', $offset, $result);\n        trigger_error (\n            mysql_trigger_msg ($msg, next (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return false;\n    }\n\n    if ( ($r = mysqli_fetch_field_direct ($result, $offset)) === false )\n        return false;\n\n    return $r;\n}\n\nfunction mysql_global_resource (&amp;$c, $argc, $noerr = false) {\n    if ( $argc &lt; 0 ) {\n        trigger_error (\n            mysql_trigger_msg('Wrong argument numers', next (debug_backtrace ())),\n            E_USER_WARNING\n        );\n        return null;\n    }\n\n    \/\/ $c is exists\n    if ( $argc == 0 ) {\n        if ( ! is_myresource ($c) ) {\n            if ( $noerr === false ) {\n                trigger_error (\n                    mysql_trigger_msg ('no MySQL-Link resource supplied', next (debug_backtrace ())),\n                    E_USER_WARNING\n                );\n            }\n            return null;\n        }\n    } else {\n        $c = &amp;$GLOBALS&#91;'_MySQLCON_'];\n\n        if ( ! is_myresource ($c) ) {\n            if ( $noerr === false ) {\n                trigger_error (\n                    mysql_trigger_msg ('no MySQL-Link resource supplied', next (debug_backtrace ())),\n                    E_USER_WARNING\n                );\n            }\n            return null;\n        }\n    }\n\n    return $c;\n}\n\nfunction mysql_trigger_msg ($msg, $tr) {\n    return sprintf ('%s: %s in %s on lien %d', $tr&#91;'function'], $msg, $tr&#91;'file'], $tr&#91;'line']);\n}\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83e\udde9 PHP 7 \uc774\uc0c1\uc5d0\uc11c mysql_connect() \uc624\ub958 \ud574\uacb0\ubc95 \u2014 mysql-wrapper.php\ub85c \uc644\ubcbd \ud638\ud658\ud558\uae30 PHP 7 \uc774\ud6c4\ub85c \uae30\uc874\uc758 mysql_* \uacc4\uc5f4 \ud568\uc218\ub4e4\uc774<\/p>\n","protected":false},"author":1,"featured_media":82,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,8],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-it","category-php"],"_links":{"self":[{"href":"https:\/\/5047878.net\/index.php?rest_route=\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/5047878.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/5047878.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/5047878.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/5047878.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=81"}],"version-history":[{"count":2,"href":"https:\/\/5047878.net\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":85,"href":"https:\/\/5047878.net\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions\/85"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/5047878.net\/index.php?rest_route=\/wp\/v2\/media\/82"}],"wp:attachment":[{"href":"https:\/\/5047878.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/5047878.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/5047878.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}