Questions tagged as 'php'

0
answers

Fill logbook table with an INSERT TRIGGER after saving in the table bagones

Create the trigger but when the insert is executed it gives the following error: TRIGGER Code DROP TRIGGER IF EXISTS 'bin_bagon_ins'; CREATE DEFINER = 'root' @ 'localhost' TRIGGER 'bin_bagon_ins' AFTER INSERT ON 'bagon' FOR...
asked by 12.09.2018 / 19:32
0
answers

Delete blank space at the end of the file (.txt)

I have a code where I make a query with php and sql server, the query brings me some records, then I create a text file (.TXT) and with a cycle while(true) I write the records and when there are no records that write I give the order b...
asked by 12.09.2018 / 19:03
0
answers

Show flashing div depending on the result of a query

I have a PHP page that every x seconds consults another PHP the number of rows of a query. Based on that answer, that is, if the value is greater than zero, I would like to show a div , which is an alert, which should be intermittent. I...
asked by 12.09.2018 / 19:03
0
answers

Help Uncaught Error: Syntax error, unrecognized expression

I'm making a page for the school and I have a problem with the announcements. This is the code where the problem is <?php if (isset($_SESSION['username']) && $_SESSION['rol']=='administrador' OR isset($_SESSION['username'...
asked by 11.09.2018 / 23:28
1
answer

Query that calculates the state according to other tables

Thank you for reading me, I am using Php and MySql, I have in a table fees and in another table the payments of those fees. How can I know what fees are unpaid and what are not? TABLE_CUOTES id amount dateVenture PAGOS_EFECTIVO idCuota amo...
asked by 11.09.2018 / 23:49
0
answers

Data Filtering in Codeigniter, Mysql

I'm doing a search and filtering it with $this->input->get('tags') . The problem I have is that the data with which I will filter is in a table from 1 to many, where one can have multiple data. The tables I have in the database...
asked by 11.09.2018 / 21:19
1
answer

How to re-size an image in laravel?

This is the function that I have that saves the image everything works fine, but I want to know how I can do to resize the images and fill the images to not distort, like adding a margin, either vertically or horizontally according to as necessa...
asked by 25.09.2018 / 11:16
2
answers

Input shows the result on three selects

Good morning I'm doing the insertion of orders and I need some help. The idea is that according to two selects the result has to come out in an input. On the one hand we have the producto that is in the table productos +----+-...
asked by 13.09.2018 / 06:52
1
answer

Return values so this empty MYSQL

Greetings I am doing a query in MYSQL but if it is empty the where in does not return values to me. SELECT objects.*, GROUP_CONCAT(mvalues.value SEPARATOR ", ") as value, GROUP_CONCAT(mdescriptor.name SEPARATOR ", ") as name FROM objects JOIN...
asked by 13.09.2018 / 14:30
2
answers

Put Alert of confirmation in this code

Hello, someone could help me how to put an alert that first tells me if you want to confirm whether or not in this code THIS IS MY JAVASCRIPT function Fagregartecins_inc_67(){ //alert("Incumplió rta1"); tec_inc_id_tecni...
asked by 25.09.2018 / 12:51