-2
Hello, I would like help with my code, I wanted when the user clicked on 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'];
Change, dynamically in the bank from "N" to "S". Initially the value saved for all posts 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 as viewed, but it’s a PHP application, a website.
Looking for javascript and ajax would already solve this, but I don’t know how (I also saw that onClick=Function() would already solve); I built an if to recover the values later 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>";
} ?>
Gives a search on the site on ajax, has enough and assembles a test, there reformulates with a punctual doubt, so is very broad...
– MagicHat
very broad ...
– Murilo Melo