0
I have a problem to display data coming from a database in an orderly manner, I have a field for the user to enter with the ID and it returns the user name, and when searching for more users the previous ones should keep.
<?php
    $a = $_GET['a'];
    if($a == "buscar"){
        $id = $_POST['id'];
        $sql = ibase_query("SELECT NOME FROM TB_CLIENTE WHERE ID_CLIENTE = $id ");
        $row = ibase_fetch_row($sql);
        echo '<tr>';
        echo '<td>' . $row[0] . '</td>';
        echo '</tr>';
    }
?>
This way each new search it eliminates the previous result
Have you considered the possibility of making asynchronous requests with AJAX?
– Woss
So friend, I do not know very well ajax, I am starting work with php. I followed the tip of a colleague here at the forum to do with jquery or javascript, but I’m not able to think of a solution
– ProgMen