Questions tagged as 'php'

1
answer

I can not select the dynamically created radiobuttons

I'm having a hard time manipulating radiobutton components dynamically created when I click the button, but I'm having a small problem, when I click on the generated radiobutton, the selected component is the main component contained in the tabl...
asked by 03.04.2017 / 02:21
1
answer

How can I pass this code snippet to localstorage?

<script> navigator.geolocation.getCurrentPosition(function(position) { document.cookie = "mylat="+position.coords.latitude; document.cookie = "mylng="+position.coords.longitude; }) var mylat = Number("<?php print_r($_C...
asked by 31.03.2017 / 14:03
0
answers

POO list records [closed]

Hey guys, which way is it better to list bank records? The first is the structured way and the second is the object oriented is not it? Thanks. First: $sql = $usuario -> listar(); foreach($sql AS $registro) { echo $registro['nome'];...
asked by 31.03.2017 / 19:37
1
answer

Function that inserts data into the bank

I have this little problem, no matter what I do, it does not work, it always gives "Invalid Query", could anyone help me? <?php include('conexao.php'); include('fecha_conexao.php'); function inserir($coluna,$valor,$tabela){ error_re...
asked by 04.04.2017 / 17:45
0
answers

Date function returning day of month and incorrect time [duplicate]

I am trying to capture the date and time to check the time the user has gone without doing any action on the system, however I am having problems with the PHP date function. The code is as follows: $agora = date("Y-n-j H:i:s"); However, i...
asked by 15.04.2017 / 00:26
0
answers

Doubt: Web Sockets and how to use

I was seeing this question link So I did not read the answer on nodeJS and I researched, but I did not understand much. How to apply this technology (nodeJS)? I am developing a site in php / jquery and in it I have administrative panel wit...
asked by 07.04.2017 / 06:07
1
answer

PHP 7 - User logged in (AD) and machine name

I've already researched Stackoverflow En and , google and only found things like getenv() , $_SERVER['user'] , shell_exec() or anything that returns me data Web server, no user logged into the system. Another solution, no...
asked by 03.08.2017 / 21:58
1
answer

How to get a name inside a string in php?

$resultado = "spawn needle /var/www/html/trabalho/arquivo/emboss/needle/alvos.txt /var/www/html/trabalho/arquivo/emboss/needle/modelos.txt Needleman-Wunsch global alignment of two sequences Warning: Unknown swissprot line type ' ' Warning: Unknow...
asked by 04.08.2017 / 22:30
2
answers

What number of the line is clicked

Ineedtopostthislinenumbertoanotherprogramphp<divid="posiciona"> <table id="mostra_prod" cellpadding="1" cellspacing="3" bordercolor="#000"> <tr> <td align="right" bgcolor="#0a0a96">Aplicação</td...
asked by 09.08.2017 / 12:28
4
answers

How do the date () function format a date in Portuguese?

In my project I am using the date() function, however I would like it to be in Portuguese, my current format is: "Thursday 6th", I would like it to be in the same model but in Portuguese, this is my formatting : // $article['article_tim...
asked by 06.03.2014 / 19:17