diff options
| author | Georg Richter <georg@php.net> | 2003-02-12 00:46:29 +0000 |
|---|---|---|
| committer | Georg Richter <georg@php.net> | 2003-02-12 00:46:29 +0000 |
| commit | ff8f0eb7dacb8235090e5b759af5db4bd6ee690e (patch) | |
| tree | 0c58b303e77e8c93c700212d6189cf7409cfb9e4 /ext/mysqli/tests/031.phpt | |
| parent | 7d7c07a77ce0298e86d3123d9043560c31f6a37e (diff) | |
| download | php-git-ff8f0eb7dacb8235090e5b759af5db4bd6ee690e.tar.gz | |
adding a few tests
Diffstat (limited to 'ext/mysqli/tests/031.phpt')
| -rw-r--r-- | ext/mysqli/tests/031.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/mysqli/tests/031.phpt b/ext/mysqli/tests/031.phpt new file mode 100644 index 0000000000..61bfb5bb32 --- /dev/null +++ b/ext/mysqli/tests/031.phpt @@ -0,0 +1,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" |
