mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
27 lines
474 B
PHP
27 lines
474 B
PHP
--TEST--
|
|
mysql_fetch_row (OO-Style)
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
<?php require_once('skipifemb.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
include "connect.inc";
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
|
$mysql = mysqli_connect($host, $user, $passwd);
|
|
|
|
$mysql->select_db("test");
|
|
$result = $mysql->query("SELECT DATABASE()");
|
|
$row = $result->fetch_row();
|
|
$result->close();
|
|
|
|
var_dump($row);
|
|
|
|
$mysql->close();
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
[0]=>
|
|
string(4) "test"
|
|
}
|