Lines Matching refs:link
13 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
17 if (!mysqli_set_charset($link, 'big5'))
19 mysqli_close($link);
25 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
32 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
33 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link),
34 mysqli_error($link));
37 if (!mysqli_query($link, 'CREATE TABLE test(id INT, label CHAR(1), PRIMARY
39 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
40 mysqli_error($link));
43 var_dump(mysqli_set_charset($link, "big5"));
45 if ('���H�U���e\\\\���H�U���e' !== ($tmp = mysqli_real_escape_string($link,
49 if ('���H�U���e\"���H�U���e' !== ($tmp = mysqli_real_escape_string($link,
53 if ("���H�U���e\'���H�U���e" !== ($tmp = mysqli_real_escape_string($link,
57 if ("���H�U���e\\n���H�U���e" !== ($tmp = mysqli_real_escape_string($link,
61 if ("���H�U���e\\r���H�U���e" !== ($tmp = mysqli_real_escape_string($link,
65 if ("���H�U���e\\0���H�U���e" !== ($tmp = mysqli_real_escape_string($link, "���H�U���e"
69 var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100,
72 mysqli_close($link);