Questions tagged as 'php'

0
answers

How to perform a search by dates with mysql using the select?

If you can help me with an example of how to perform a search by dates with mysql, but with a list the search I mean is that the user filters a data and by date generates the search. Thank you very much for your collaboration     
asked by 13.10.2018 / 13:57
1
answer

how can I make the collapse target for a single table?

in advance thank you for your time, I have a problem with a table in which I use collapse, when I click on a row I display the information, but when I click on another, the last row that is moved does not return to its place. This is my PHP code...
asked by 13.10.2018 / 15:35
1
answer

Only one product appears in the FPDF file as I do so that they all appear?

I have a sales page for a project and I have to pass the data of the cart to an invoice, I have the product and cart tables, and the id's of the products that were bought are stored in the cart. $query = mysqli_query($con,"select * from produc...
asked by 13.10.2018 / 17:19
2
answers

I can not find the file with php

Could you help me with this: <?php $archivo="datos.txt"; $camino="datos/"; if(file_exists($camino.$archivo)) { print " <p> Si existe el archivo $archivo en la carpeta $camino. </p>"; } else { print " <p> No existe el arch...
asked by 13.10.2018 / 14:01
0
answers

php error when performing save typescript

I'm trying to save the "client" table but it does not ask me the question, it shows me the error "runtime error unexpected token < in json at position 0. The login if I do it correctly, but the save I can not perform.    // CREANDO MI CONEX...
asked by 07.10.2018 / 22:59
0
answers

Adapt the breadcrumbs function to a particular web

I have copied the following code from: Bootstrap Breadcrumbs with PHP and it works perfectly but It turns out that the web where I will implement it has a structure that is the following: link and the web is working showing the breadcrumbs i...
asked by 08.10.2018 / 01:34
0
answers

Script php from console linux error mysql

I have a script in PHP that I run from the linux console, this script goes through a database table and updates one by one the records in another table, the problem is that randomly, the mysql starts to throwing error in the queries when they ar...
asked by 24.10.2018 / 21:33
1
answer

Fill a PHP select Laravel

I have this select function that what it does is select the customer table and select them by country, in which if you bring the data this in the Client's driver. public function select(){ $data = DB::select('select * from clientes where...
asked by 24.10.2018 / 23:08
1
answer

How to obtain and insert auto-incremental id from one table in another

I have been asked to do in PHP a script that automatically inserts values from a csv to the database, but although I have some idea of PHP (little thing, I'm learning on the fly) I have no idea of MySQL. The script works fine, but the respons...
asked by 08.10.2018 / 07:47
0
answers

How to use renderAjax Yii2

A query, I have been trying to use renderAjax but there is no way, could anyone show me an example of how to use it correctly? When I try to use it, I absolutely do not load any style, layout or anything, just the view I indicated. Thanks Par...
asked by 08.10.2018 / 13:11