summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/031.phpt
blob: 61bfb5bb3261f69dfe935a261e7995bd058a7e69 (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
--TEST--
function test: mysqli_error
--FILE--
<?php
	$user = "root";
	$passwd = "";

	/*** test mysqli_connect 127.0.0.1 ***/
	$link = mysqli_connect("localhost", $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"