Questions tagged as 'php'

1
answer

Query that inherits twice from a table

Select v.id_user, uv.nombre_nacion as PaisEnvia, up.nombre_nacion as PaisRecibe From solicituds as v INNER JOIN pais as uv on v.id_pais_envia = uv.id_nacion INNER JOIN pais as up on v.id_pais_recibe =up.id_nacion; It would be...
asked by 17.12.2018 / 14:27
1
answer

I can not store the variables - PHP

I am currently working on a code where I extract the content that I do not need from a URL when it is loaded, I leave the content that I need and then I store it in a variable, but it only does it with the first variable with the rest it does no...
asked by 17.12.2018 / 14:14
0
answers

Prestashop 1.7 ContextErrorException in:

Lately I have presented problems with my website when the shopping cart does not have any product, but when it has products it obviously does not present the error in question. Next part of the text that shows me error    ContextErrorExceptio...
asked by 04.01.2019 / 03:25
0
answers

Send data to BBDD from a Form with PHP without reloading the Web

<form action="db_principal.php" method="post" enctype="multipart/form-data"> <textarea placeholder="En que estas pensando?" name="detalle" required=""></textarea> <input id="coords" type="text" class="form-control...
asked by 21.12.2018 / 18:31
0
answers

AJAX DOES NOT SEND THE DATA TO PHP

The idea of the code is to prevent the page from reloading when sending a form, I read that the best option is with Ajax, but when doing it with ajax, it does not send me the data I need to the php I am using. $(document).ready(function(...
asked by 21.12.2018 / 15:14
0
answers

Insert client with Volley to an external DB?

I'm trying to do an insert using Volley and PHP but for some reason when I try to register in the PHP code it enters the else instead of the if ... // registerClient.php // <?PHP //hostname, username, password y database require_once 'd...
asked by 21.12.2018 / 15:21
2
answers

Function JS runs only once

My problem is that my JS function only works for me the first time I run it and if I try to execute it a second time it gives me this error: <script type="text/javascript"> $(document).ready(function(){ $('#bt...
asked by 16.12.2018 / 04:30
1
answer

Help with mysql query with different conditional if php

I need to perform a mysql query with conditional if from php. The idea is to pass the query variable, by the query where not to be doing a different one for each time it is consulted. These are the php conditions: $WHERE = ""; if ($fecha_in...
asked by 16.12.2018 / 00:09
0
answers

Error 500 in php script (Internal Server Erro)

I just came up a day ago a website developed by my nomas. But it gives an error in the login.php script. Error 500: Internal Server Error. The server is working with php 7. But the truth is I do not know what it can be, At the local comput...
asked by 15.12.2018 / 17:31
0
answers

How to validate if there is data within a date range, if not, send message

I need that when selecting the date range by means of datepicker , verify if there is data or not within the range when executing the query in the file php , if there are not any send a message. Since there is no data, it will not ge...
asked by 14.12.2018 / 19:36