All Questions

1
answer

Store query in array

Very good to everyone. I need to solve something that I can not give with it. I have a mysql query where I extract the income totals for each month of the year 2018. $sql_g=mysqli_query($con, "SELECT MONTH(fecha_factura) AS mes, SUM(total_vent...
asked on 05.05.2018 / 16:58
3
answers

How to know if it is empty or null on field by ID in Javascript

I have this: <select id="division" multiple="multiple" title="Equipos seleccionados" style="width:143px;height:125px;overflow:scroll;"> <option value="1" title="Bundesliga">Bundesliga</option> </select> I'm doing thi...
asked on 24.04.2018 / 13:43
1
answer

Error ORA-06502: PL / SQL

I have the following procedure: CREATE or REPLACE PROCEDURE QUERY_EMP (id IN emp.empno%TYPE, salario OUT emp.sal%TYPE, puesto OUT emp.job%TYPE) IS BEGIN SELECT job, sal INTO salario, puesto FROM emp WHERE empno = id; END QUERY_EMP;...
asked on 08.05.2018 / 18:52
1
answer

Modify css of element within iframe

I have an iframe with id="myframe" that has another source file from the same server <iframe id="myframe" src="referencia.php"> </iframe> In reference.php I have a div with id="box" that I want that when it opens directly the p...
asked on 10.03.2018 / 17:14
1
answer

Do .htaccess files work on Google Cloud VMs?

I have a project in an instance of Compute Engine (GCP) which develops it in PHP, HTML, CSS, JS and MySQL persistence. The problem is this: When testing the project on a local server (XAMP) it works correctly but when you migrate everything t...
asked on 10.03.2018 / 16:22
2
answers

Two results same column

I have a company table with the id and name columns. And another table operations with the columns send_id , recib_id . I want to get the results name of send_id and receive_id . And how do I get the two different results in php?...
asked on 16.03.2018 / 14:21
1
answer

Join in laravel

I have my in my controller: $habitaciones = DB::table('habitaciones') ->join('tipo_habitaciones', 'habitaciones.id_tipo', '=', 'tipo_habitaciones.id') ->select('habitaciones.*', 'habitaciones.id', 'habitaciones.hab_numero...
asked on 01.03.2018 / 22:52
2
answers

Why does not the Scanner read the variables and sometimes send an exception?

I have the following problem: when running the program the menu is shown with all its options but when choosing the options, it only takes the number 1 and the 5 that ask for data, after entering these data, two pass things: It does not do a...
asked on 19.03.2018 / 15:24
1
answer

Problem with foreign keys in hosting with php

Hi, I would like you to help me, someone knows why: create a database with powerdesigner for Mysql. When I upload it locally, phpmyadmin with xammp works, all the foreign keys are created. But when I upload it to phpmyadmin of a hostgat...
asked on 07.03.2018 / 18:11
1
answer

Problem 401 of the Euler Project in Maxima

Problem statement: The divisors of 6 are 1,2,3 and 6. The sum of the squares of these numbers is: 1 + 4 + 9 + 9 + 36 = 50 Allow sigma2(n) to represent the sum of the squares of the divisors of n. Thus, sigma2 (6) = 50 ....
asked on 07.03.2018 / 11:53