2
mysqli fetch mixed values 2
6
<?php require_once('skipif.inc'); ?>
11
/*** test mysqli_connect 127.0.0.1 ***/
12
$link = mysqli_connect($host, $user, $passwd);
14
mysqli_select_db($link, "test");
16
mysqli_query($link,"DROP TABLE IF EXISTS test_bind_result");
18
mysqli_query($link,"CREATE TABLE test_bind_result(c1 tinyint, c2 smallint,
24
mysqli_query($link,"INSERT INTO test_bind_result VALUES(120,2999,3999,54,
28
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result");
29
mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8);
30
mysqli_execute($stmt);
33
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8);
37
mysqli_stmt_close($stmt);