Posts by Victor Laureano • 56 points
3 posts
-
1
votes1
answer123
viewsA: Questions form with radio button returning empty displaying
<?php //CONEXÃO $servername = "127.0.0.1"; $username = "root"; $password = "root"; $dbname = "master"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error)…
-
2
votes1
answer322
viewsA: Mysql Time Count
Select username, Sum(acctsessiontime) as tempo_logado from radacct Group By username so you will have a listing per user, how many seconds it stayed.
-
1
votes1
answer701
viewsA: Pick up last generated ID in Insert, return to ajax function and send to another page
You can use the PDO native lastInsertId() function In PHP: $sql = 'INSERT INTO incidente (titulo, descricao, anonimo, tipo, foto)'; $sql .= 'VALUES (:titulo, :descricao, :anonimo, :tipo, :foto)' ;…