Lines Matching refs:link
19 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
23 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
28 if (!($res = mysqli_query($link, "SELECT 'ok' AS it_works")) ||
30 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
35 mysqli_close($link);
37 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
42 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket)))
47 if (!($res = $link->query("SELECT 'works also with oo' AS syntax")) ||
49 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
54 mysqli_close($link);
56 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
59 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
63 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))