blob: 04e705de6ee66bf485e94004fa3d8000070bdb44 (
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--
mysql_fetch_row (OO-Style)
--FILE--
<?php
include "connect.inc";
/*** test mysqli_connect 127.0.0.1 ***/
$mysql = mysqli_connect("localhost", $user, $passwd);
$mysql->select_db("test");
$result = $mysql->query("SELECT CURRENT_USER()");
$row = $result->fetch_row();
$result->close();
var_dump($row);
$mysql->close();
?>
--EXPECT--
array(1) {
[0]=>
string(14) "root@localhost"
}
|