Questions tagged as 'php'

2
answers

Unexpected token in JSON

I want to read the JSON information received from an AJAX request. Code .js const xhr = new XMLHttpRequest(); xhr.open("POST", "includes/modelos/modelo-contacto.php", true); xhr.onload = function() { if (this.status === 200) {...
asked by 28.11.2018 / 07:12
0
answers

save field values in a laravel variable

I hope you can help me clarify a little better what I have to do with laravel. I need to take 3 values that I will write in 3 fields and send them to some temporary variables in php, I do not need to record them in the database or anything, I...
asked by 28.11.2018 / 15:34
0
answers

Blank page when creating table

I have a query that the following appears in the logs of the web server and does not show me anything in the Browser:    PHP Warning: mysql_fetch_array () expects parameter 1 to be resource, boolean given The code I have is the followin...
asked by 13.11.2018 / 00:06
0
answers

Doubt when Showing Logeado User Records

Good morning, I have a problem showing the information of each user, in this there are some forms which they store in a database, the code is as follows: User Login: <?php session_start(); require 'funcs/conexion.php'; include 'funcs/f...
asked by 13.11.2018 / 15:10
3
answers

how to save data with commas in mysql with php using pdo, save it in two when I insert it and delete the comma

$objAdjEmail = new adjuntoEmail(); //$objAdjEmail = $arrayObjAdjuntos[$indice]; $objAdjEmail->setUrlArchivo($urlAdjunto); $objAdjEmail->setIdCorreo($pcorreo->getId());...
asked by 24.06.2016 / 23:37
1
answer

Paging in grocery crud does not work well

The problem I have is with the grocery crud paging apparently if I'm doing it well but the specific problem I have is that for example I'm on page 20, I edit a product and when I save the data instead of staying On page 20, he returns me to the...
asked by 22.06.2016 / 21:04
0
answers

Send email with PHP without waiting time

In several sites of my project, when sending a form, this also has the function of sending an email to 3 recipients The fact is that it takes about 4-5 seconds to validate the form because the email is being sent. What I need is to optimiz...
asked by 15.10.2018 / 11:21
0
answers

Export query to csv with php

I have the following code to export a query to csv with php but it does not work, you know how I can get export the query to csv with php require '../conn.php'; $sql = '(SELECT *) UNION ALL (SELECT * FROM senders INTO OUTFILE 'prueba....
asked by 14.10.2018 / 02:48
3
answers

get data from a pivot table

I am working with laravel 5.4 ... I have a question that may be quite simple to answer but I could not find the solution, I have a table state and another called organization to these two unites an intermediate table called state_organization wh...
asked by 13.10.2018 / 19:50
0
answers

Doctrine ORM ManyToMany bidirectional error

I have a query about my entity that gives me an error, I'll show the entity and the error: class Post implements ResourceInterface, TranslatableInterface { /** * @var int */ private $id; /** * @var bool */...
asked by 11.10.2018 / 18:02