Hello, I would like help with my code, I wanted it when the user clicked the field with the magnifying glass:
<a class="blue" href="#">
<i class="ace-icon fa fa-search-plus bigger-130"></i>
</a>
The value of the status field:
<?php $status = $dados['status'];
Dynamically change the bank from "N" to "S". Initially the value saved for all publications is "N" but I want it to change to "S" when the user clicks. I'm doing this which is similar to whatsapp; Clicking is displayed, but it's an application in PHP, a website.
Looking for I saw that javascript and ajax would already solve this, but I do not know how (I also saw that onClick = function () would already resolve); I've set up an if to retrieve the values afterwards with refresh.
<?php $status = $dados['status'];
if ($status == "N"){
echo "<i class='ace-icon fa fa-circle red'></i>";}
else if($status == "S"){
echo "<i class='ace-icon fa fa-circle green'></i>";
} ?>