-2
I need to make a button that when the user clicks on the corresponding row he will execute the following code without refresh:
Line Code:
mysql_query('UPDATE tbl_publicacao SET status = S WHERE cod_publicacao = $cod_publicacao');"
Row:
<?php $cod_publicacao = $back_query['cod_publicacao'];
$arquivo = $back_query['arquivo'];
echo"<a href='upload/publicacoes/{$razao_social}/{$tipo}/{$titulo}/{$ano}/{$arquivo}'>
<i class='ace-icon fa fa-eye bigger-110 hidden-480'></i> Visualizar Arquivo</a>";
?>
I believe it should be an onclick function in javascript but I do not know how to develop it to change in javascript
A little about front-end and back-end http://answall.com/a/177050/3635
– Guilherme Nascimento