Questions tagged as 'php'

0
answers

Truncated incorrect DOUBLE value. What error is that?

On this page I select the book id to display it and then refresh the visits field by incrementing it. <?php if(isset($_GET['id'])) { $id = $_GET['id']; } $livros = mysqli_query($conexao, "SELECT nome, descricao, imagem, download, vis...
asked by 29.10.2018 / 21:09
2
answers

Query does not work inside php [closed]

I made a query with a join to get information from the database, I tested it in mysql and it worked perfectly, the problem is that it does not work in php, not the execution error but the return is nullo, even if I change the I have used var_dum...
asked by 06.11.2018 / 03:37
0
answers

how to limit socket.io only on specific PHP pages? [closed]

Hello, I'm using socket.io in PHP to create a chatroom, but I'm not able to create specific chat in different rooms, all rooms even with different URL's are using the same chat, how do I change it Is the problem in the port? Would you have some w...
asked by 23.10.2018 / 19:52
3
answers

Join 2 Oracle SELECTS and as a result 2 columns with different values

I'm facing a problem, I have two sql selects select * from web.demonstrativo_processados where nroempresa = 1 and data between to_date('2018/01/01' , 'yyyy/mm/dd') and to_date('2018/12/31' , 'yyyy/mm/dd') That brings me the values of t...
asked by 26.10.2018 / 20:22
0
answers

Export HTML table to Excel

I have this page in PHP that lists all my records, I'm trying to export it to Excel, but all the records come out in just one column. <?php require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/xajax.inc.php'; $url = "http://".$_SERVER["SERVE...
asked by 27.10.2018 / 02:21
0
answers

Call to a member function cadastrarDados () on null - Laravel

Good morning everyone, I'm developing an application in Laravel 5.6 using PHP 7.2, I'm having problems using the dependency injection in the constructor, since when creating the object the algorithm works perfectly, This DOES NOT work: C...
asked by 06.11.2018 / 11:52
1
answer

imagejpeg is not saving image

Follow the code, then the question. $localDiretorioFoto = "img/mensagens/"; $img = $_FILES["foto"]["tmp_name"]; $imgg = getimagesize($img); if($imgg["mime"] == "image/jpeg") { $nomeFoto = imagecreatefromjpeg($img); } else if($imgg["mime"]...
asked by 14.03.2015 / 21:31
2
answers

How to make the user system banned

To make a login system and wanted that when a user had the name Banned in the banned column of the tb_user table he could not log in.      if ($_POST['username']) { if( strtolower($_POST['code'])!= strtolower($_SESSION['texto'])){ include('...
asked by 06.03.2015 / 22:24
1
answer

websockets and php

Well, I have two direct doubts, which are: Is the number of connections to the server limited? What limits that? is it possible to have infinite connections? How can I send a message to a particular user according to this library? F...
asked by 09.03.2015 / 03:40
1
answer

UPDATE in PHP executes but does not update

Good evening !!! I am developing an application in college as requested by the teacher. Initially we were asked to make a CRUD. Of all the operations, the only one I could not do was the update. I have the impression that the registry ID is not...
asked by 01.10.2018 / 02:07