php-src/ext/mysqli/tests/030.phpt
2004-12-04 08:50:33 +00:00

26 lines
465 B
PHP

--TEST--
function test: mysqli_errno
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--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)