我想在PHP页面循环输出SQL中的数值
<?phpinclude_once("conn.php");$sql="select*fromgowucheorderbyid";$result=mysqli_query...
<?php
include_once("conn.php");
$sql= "select * from gowuche order by id ";
$result= mysqli_query($conn,$sql);
print_r($result);
while($row = mysqli_fetch_row($result)){
echo '<br>';
for($i=0;$i<=count($row);$i++){
echo $row($i);
}
}
?>
我想循环输出SQL中的数值
打印$result的结果是:mysqli_result Object ( [current_field] => 0 [field_count] => 4 [lengths] => [num_rows] => 2 [type] => 0 ) <?php
错误是:Fatal error: Function name must be a string in F:\workspace\test\shop1.0\show.php on line 9 展开
include_once("conn.php");
$sql= "select * from gowuche order by id ";
$result= mysqli_query($conn,$sql);
print_r($result);
while($row = mysqli_fetch_row($result)){
echo '<br>';
for($i=0;$i<=count($row);$i++){
echo $row($i);
}
}
?>
我想循环输出SQL中的数值
打印$result的结果是:mysqli_result Object ( [current_field] => 0 [field_count] => 4 [lengths] => [num_rows] => 2 [type] => 0 ) <?php
错误是:Fatal error: Function name must be a string in F:\workspace\test\shop1.0\show.php on line 9 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询