summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/039.phpt
blob: 6ddb37bc5f7c314f44aec1877eb876d32a3c65b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
function test: mysqli_num_fields() 2
--FILE--
<?php

	include "connect.inc";
	
	/*** test mysqli_connect 127.0.0.1 ***/
	$link = mysqli_connect("localhost", $user, $passwd);

	mysqli_real_query($link, "SHOW VARIABLES");

	if (mysqli_field_count($link)) {
		$result = mysqli_store_result($link);
		$num = mysqli_num_fields($result);
		mysqli_free_result($result);
	}

	var_dump($num);

	mysqli_close($link);
?>
--EXPECT--
int(2)