php-src/ext/mysqli/tests/049.phpt
2003-02-17 16:19:49 +00:00

24 lines
408 B
PHP

--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"
}