blob: 9bf7369a22bcef15bda296beac61adc23230d7d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--TEST--
function test: mysqli_errno
--FILE--
<?php
include "connect.inc";
/*** test mysqli_connect 127.0.0.1 ***/
$link = mysqli_connect($host, $user, $passwd);
$errno = mysqli_errno($link);
var_dump($errno);
mysqli_select_db($link, "test");
mysqli_query($link, "select * from non_exisiting_table");
$errno = mysqli_errno($link);
var_dump($errno);
mysqli_close($link);
?>
--EXPECT--
int(0)
int(1146)
|