Questions tagged as 'php'

1
answer

Help with data type in MySQL

This is the database script, everything is inserted correctly except the part of the precio , when viewing it in a php file (in which all the data is in a table) are presented as: 31.84 38.74 and 32.51 that is, the last number th...
asked by 12.01.2018 / 13:49
2
answers

Make a lock of a cron

to see if someone gives me a hand, I have a cron that generates a feed of products in 26 languages, and it starts to happen that sometimes gives timeout I have happened to divide the file into 3 instead of having script.php have script1.php scri...
asked by 11.07.2018 / 15:13
1
answer

Call a value from the BD to an input

Hello good afternoon I would like to know how I call this value 19 to another view in an input that I will put hidden, I need it to calculate the operation automatically the value 19 I have it in a table called Iva and not having...
asked by 06.07.2018 / 21:55
1
answer

Database query php and mysql PDO

Someone who can help me ..... I want to print the userid, as I already have in the html, it's just an echo "$ result" .... <?php session_start(); include "conexion.php"; $user = $_SESSION['usuario']; $idusuario="SELECT id_usuario FROM u...
asked by 05.12.2017 / 05:47
1
answer

Build associative array with txt lines

Hi, I have a txt that has the following structure [HEADER] 7894=12.01 1124=456 2234=1.0 2222=2.3 [DATAOUT] 1235=7 1006=10.0 1007=10 [ENDOFFILE] I'm reading it from PHP like this: $archivo = fopen('archivo.txt','r'); $data_archivo=array();...
asked by 27.04.2018 / 22:47
2
answers

How to read a JSON response from AJAX?

How about? You see, I'm learning ajax and json; while I was doing some tests, I have a question that I have not been able to clarify and I would like you to help me. I explain: I have a code where I make an ajax request to get certain informa...
asked by 26.04.2018 / 23:57
1
answer

Problems downloading pdf by Chrome PHP

At the moment of selecting a pdf, the chrome browser visualizes it well, but if I want to download it, it does not work for me, it downloads a file with the name of the page that is ver.php index.php var listar = function(year) {...
asked by 30.04.2018 / 20:23
1
answer

Error inserting records in two different tables from the same model

I want to insert records in 2 different tables from the same model. When I give it to save, it marks me:    Call to a member function bind_param () on boolean <?php error_reporting(E_ALL); require_once 'conexion.php'; $obj = json_decode...
asked by 19.01.2018 / 07:24
2
answers

show queries by careers

the idea is to show the consultations by career in the following image: the first 4 records on the right are of the second race and the last 4 of the first race and it is wrong, for example the query on the left shows me that it is the Second...
asked by 24.01.2018 / 21:59
1
answer

Insert HTML page in email via php

Good morning, I have a doubt. I am trying to send a page in html via mail, when executing a function in php, instead of directly placing the html inside the function. To see a clear example of what I need would be something like this: Button...
asked by 17.01.2018 / 16:46