Pedro Henrique Kuzminskas Pedro Henrique Kuzminskas - 1 month ago 9
PHP Question

Function name must be a string in

Fatal error: Function name must be a string in /home/joinmene/public_html/tabelas2.php on line 88

Why is are giving this error? the line 88 is this beginning, in my view is correct.

<?php while ($row = $mysql_fetch_array($search_result)): ?>
<tr>
<!--<td><?php // echo $dado['valor'] ?></td>-->
<td class="capitalize"><?php echo $row["nome"] ?></td>
<td class="capitalize"><?php echo $row["cidade"] ?></td>
<td class="capitalize"><?php echo $row["telefone"] ?></td>
<td class="capitalize"><?php echo $row["email"] ?></td>
<td class="capitalize"><?php echo date($datahora, strtotime($dado['data_cadastro'])) ?></td>
</tr>
<?php endwhile; ?>

Answer

mysqli_fetch_array() is not a variable and shouldn't have $ before it.

Comments