Questions tagged as 'php'

1
answer

Get the last record of DynamoDB

I'm trying to get the last record of x variable in a dynamoDB table using php. The simple way I had was to get the data for the last 10 minutes and those get the first. //Ruta de la variable que se quiere obtener $nameVariable = $this->conv...
asked by 18.09.2018 / 00:58
1
answer

make an insert into and then an update in php [closed]

I want to make an insert of a single field that is observations and then an update to all the others but I get an error    parse error: syntax error, unexpected 'or' (T_LOGICAL_OR) I do not know if the order in the consultations affects....
asked by 14.09.2018 / 21:35
1
answer

Strings with single or double quotes [closed]

What is the difference between using single quotes or double quotes? $tipoFile = "application/vnd.ms-excel"; $mimeFile = "text/plain"; $ruta = FILE_DIR . "/carga/"; $formato = 'CUOTAS'.$_SESSION['anio'].".csv"; Well, in the manual of php.n...
asked by 20.11.2018 / 22:14
1
answer

WebService PHP MySQL make two queries

I have this WebService in php and MySQL and the intention is to do the $ query2 (which is an update) and then execute the $ query that is a SELECT. As I see in phpMyAdmin you are running the UPDATE, but the client is not receiving the SELECT....
asked by 02.10.2018 / 13:04
1
answer

Problem to retrieve attribute

I need to recover data from the validated user that is saved in $ return, which works because I checked it with a var_dump ($ return), but when I want to dump the data of $ return to an array, it puts them null. Thanks from now. $retorno = Usu...
asked by 02.10.2018 / 14:39
1
answer

Page jump concatenated in a variable Laravel

I'm developing a project using Laravel. When I try to show the details of an actor on the screen, it shows everything on the same line like this: Is taking the as a text and not as a page break. This is my code portion pu...
asked by 02.10.2018 / 20:28
1
answer

Filter by dates does not show data

I have a table with invoice records, I'm filtering by date but it does not show me anything <form method="POST"> <div id="fechas"> <label id="lbfecha" for="">Fecha Inicial</label><!--Fech...
asked by 02.10.2018 / 19:32
2
answers

Connection to mysql databases from HTML

Good afternoon I find the following error, I want to get a result of an SQL query to a local DB make a php file with the class and its function, and make an html file so that I can present it but it indicates me error // arhivo php for the conne...
asked by 03.10.2018 / 00:43
2
answers

Pass an object to a controller from a view in Laravel

I'm trying to find a way to pass an object from a view to a controller in Laravel 5.2. The view contains a Form and the $user object is accessible in the view. I would like to know some way to access the $user object in the c...
asked by 05.08.2016 / 17:20
1
answer

Capture result returned from mysql using PDO by assigning variable INT

I need to be able to recover a record from the DB and store it in a variable as a whole value using PDO, I can not find the key and I will get the following error: /*llamo a la función*/ $vNumTicket = ($accessDB->obtenerValor()); /*Entro e...
asked by 27.09.2018 / 16:16