mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
26 lines
540 B
Plaintext
26 lines
540 B
Plaintext
|
--TEST--
|
||
|
function test: mysqli_info
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$user = "root";
|
||
|
$passwd = "";
|
||
|
|
||
|
|
||
|
/*** test mysqli_connect 127.0.0.1 ***/
|
||
|
$link = mysqli_connect("localhost", $user, $passwd);
|
||
|
|
||
|
mysqli_select_db($link, "test");
|
||
|
|
||
|
mysqli_query($link, "drop table if exists general_test");
|
||
|
mysqli_query($link, "create table general_test (a int)");
|
||
|
mysqli_query($link, "insert into general_test values (1),(2),(3)");
|
||
|
|
||
|
$afc = mysqli_info($link);
|
||
|
|
||
|
var_dump($afc);
|
||
|
|
||
|
mysqli_close($link);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
string(38) "Records: 3 Duplicates: 0 Warnings: 0"
|