Questions tagged as 'php'

1
answer

Problem with mysql stored procedure call

I have a problem calling several times in a row (within a while) to a procedure (with the CALL nameProcedure (parameter)) from php on my website. This is the code of the procedure: BEGIN SELECT @estado := estade, @subestado := subest...
asked by 23.05.2018 / 10:01
2
answers

Clear data from 2 MySQL tables

I need to delete data from two tables whenever they are older than a given date. The tables are the following: Table: reservation | id | contrato_id | fecha | ... Table: contract | id | tipo | precio_total | ... Are related by t...
asked by 23.05.2018 / 14:31
1
answer

Captive Portal through IPTABLES

Friends, how are you? Again making a query through your forum. I'm trying to make a simple captive portal with iptables and PHP however I can not make it work. I explained, I currently have a server in bridge mode, and in this redirect the traff...
asked by 24.05.2018 / 19:15
3
answers

Change the result when two equal values are introduced to the same variable in PHP

I have a variable $ description in which the name of the product that is loaded is stored. What I want is that when this variable is entered a product name that already exists add the amounts of both the new and the one that is already entered....
asked by 25.05.2018 / 12:22
1
answer

Print PDF from 000webhost

Well I am trying to generate a pdf file, locally it is perfect, but when uploading it to this host that I am using tests I get the following error; I consider that the error is not in the foreach, but at the moment of printing the data...
asked by 08.05.2018 / 19:15
2
answers

Select option selected php mysql

How can I load a selected of an option through the php code? since I need to edit several data from a table, but I need to load the data of the record, but in the filters I need to appear by default the value of the result of the query, but I al...
asked by 08.05.2018 / 21:48
2
answers

Problem with Vista in CodeIgniter

Hello everyone I have a problem that does not reflect in a view the data of another associated table, if I show the ID with the reference of the column but I want to give me the names, here is the model: It is a CRUD: The view has to add, edit a...
asked by 08.05.2018 / 21:55
1
answer

UPDATE MYSQL WITH PHP

I'm trying to do an update in mysql from php, but I'm finding it difficult, since I want to collect the values of a form in which their names are put with the name of the fields of the columns, I do not know how to explain Well, I pass code to y...
asked by 08.05.2018 / 11:38
1
answer

Problems showing images [duplicate]

I have this code that prints images from the server, but I can only see it on the server and on the internet explorer only: <img src='file://192.168.10.129/sapshared/FOTOS/KennedyDB/$row[PicturName]' height = '100' width = '100' &g...
asked by 09.05.2018 / 02:09
1
answer

PHP-Reorder Array

I have developed an algorithm in php to reorder an array that I have, the code is as follows: <?php $idescuelas=[4,5,8]; $newalumnos=[]; $sql="SELECT * FROM pruebas_alumno inner JOIN alumnos on pruebas_alumno.id_alumnos=alumno...
asked by 09.05.2018 / 14:45