<?php
$mysqli = mysqli_init();
//$mysqli->real_connect('localhost', 'datasmar', '1984mehera20113', 'datasmar_real');
$mysqli->real_connect('localhost', 'root', '', 'realestate');
if (mysqli_connect_errno())
{
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$mysqli->real_query("CALL Proc_USERTYPE_select()");
if($objResult = $mysqli->store_result())
{
function mysql_fetch_full_result_array($objResult)
{
$table_result=array();
echo 'r-->'.$r=0;
while($row = mysqli_fetch_assoc($objResult)){
$arr_row=array();
$c=0;
echo '<br>';
while ( $c < mysqli_num_fields($objResult)) {
echo 'c------>'.$c;
$col = mysqli_fetch_field($objResult, $c);
$arr_row[$col -> name] = $row[$col -> name];
$c++;
}
$table_result[$r] = $arr_row;
$r++;
}
return $table_result;
}
$GetVal=mysql_fetch_full_result_array($objResult);
echo '<br>';
echo 'rr-->'.$GetVal[0]['usert_types'];
echo '<br>';
print_r($GetVal);
$objResult->free_result();
$mysqli->close();
}
?>
this is my code i wants to out put like this
example echo 'rr-->'.$GetVal[0]['usert_types'];
rr-->India
i don't know the error message comes like this
########## Error ########################
http://localhost/Bussiness/test.php
r-->0
c------>0
Warning: mysqli_fetch_field() expects exactly 1 parameter, 2 given in D:\wamp\www\Bussiness\test.php on line 28
c------>1
Warning: mysqli_fetch_field() expects exactly 1 parameter, 2 given in D:\wamp\www\Bussiness\test.php on line 28
c------>0
Warning: mysqli_fetch_field() expects exactly 1 parameter, 2 given in D:\wamp\www\Bussiness\test.php on line 28
c------>1
Warning: mysqli_fetch_field() expects exactly 1 parameter, 2 given in D:\wamp\www\Bussiness\test.php on line 28
c------>0
Warning: mysqli_fetch_field() expects exactly 1 parameter, 2 given in D:\wamp\www\Bussiness\test.php on line 28
c------>1
Warning: mysqli_fetch_field() expects exactly 1 parameter, 2 given in D:\wamp\www\Bussiness\test.php on line 28
rr-->
Array ( [0] => Array ( [] => ) [1] => Array ( [] => ) [2] => Array ( [] => ) )
#########################################
please help me what mistake i have done.
