I am doing a query in a database and I need to display the information on the screen, but searching one by one. I tried to do it by array, but it is not displaying the vector.
Code:
<?php
$a = $_GET['a'];
if($a == "buscar"){
$id = $_POST['id'];
$sql = ibase_query("SELECT NOME FROM TB_CLIENTE WHERE ID_CLIENTE LIKE '%".$id."%'");
$row = ibase_fetch_row($sql);
$vetorDados = array();
$i=0;
$vetorDados[$i]= ibase_fetch_row($sql);
echo '<tr>';
echo '<td>' . $vetorDados[$i] . '</td>';
echo '<td>' . $i . '</td>';
echo '</tr>';
$i++;
}
?>