mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
24 lines
408 B
PHP
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"
|
|
}
|