blob: 743b4b2d0fe58ec33ce6b5567d746e22f0afb59f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--TEST--
function test: mysqli_error
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
include "connect.inc";
/*** test mysqli_connect 127.0.0.1 ***/
$link = mysqli_connect($host, $user, $passwd);
$error = mysqli_error($link);
var_dump($error);
mysqli_select_db($link, "test");
mysqli_query($link, "select * from non_exisiting_table");
$error = mysqli_error($link);
var_dump($error);
mysqli_close($link);
?>
--EXPECT--
string(0) ""
string(46) "Table 'test.non_exisiting_table' doesn't exist"
|