All Questions

1
answer

Problem with date in mysql query

I have a problem with a rebellious date. It turns out that I have to make a query between two dates, which would be this: SELECT id FROM 'Pedidos' WHERE ('fecha_cobro' BETWEEN '$fechini' AND '$fechafin') AND borrado = 0 I come from a form t...
asked on 01.12.2017 / 11:25
2
answers

SQL query to check free rooms with PreparedStatement in Java

I have this query that I pass it to @raintrooper, in this other query that I did How to check if a room is available? : declare @Vfechaentrada date, @Vfechasalida date declare @reservaciones table ( habitacion int, fechaentrada date, fechasa...
asked on 13.12.2017 / 11:28
1
answer

Theory of the grid system css

I am watching a video about the grid system in css, but a doubt arises, at the level of theory. In these moments, the system of grids, for example the one of Foundation ¿is used to use it with Css grid and flexbox or it is no longer necessary wi...
asked on 01.01.2018 / 20:47
2
answers

Transpose a result from one column to another in Postgres

I have a table similar to the following: (only an example to narrow the problem) I need to get to this result in which in the current column for the C concept I have the result of the negative B concept from the previous column. Sup...
asked on 21.12.2017 / 19:32
5
answers

C / C ++ - Pointers

I have a question about the following code: int main() { int *x, *y; int i; i = 10; x = &i; y = x; *x = *y +1; cout << i << endl; *y = *x + 1; cout << i << endl; return 0; }...
asked on 06.01.2018 / 16:23
2
answers

How can I get a value of a row by pressing a button in that row?

I have this function in javascript where I am directed to a PHP file which returns a file json and I show it in a table in the following way. JavaScript Code: $.each(students, function(calificaciones, std) { $('#tableStudents').app...
asked on 07.04.2018 / 22:46
3
answers

Print array in php

I have the following array, how can I print it in an orderly way? Array ( [return] => Array ( [0] => Array ( [codigo_materia] => 3525 [desc_materia] => Aprender Biologia [id] => 1 [nombre_materia] => Biologia ) [1] => Arra...
asked on 18.04.2018 / 22:26
3
answers

Onclick message with javascript does not hold [closed]

I have the following code to show a message when I press a certain button, but the message disappears almost instantaneously and can not be read correctly: function informacion() { document.getElementById("info").innerHTML = "Preferen...
asked on 26.03.2018 / 18:42
2
answers

Error Mysqli mysqli_query () expects parameter 1 to be mysqli, even if I am already giving you the two parameters that you request [duplicated]

I have this code: <?php require ("../clases/Conexion.php"); session_start(); $host = "localhost:3307"; $user = "root"; $pass = ""; $bd = "nutricion"; $con = mysqli_connect($host,$user,...
asked on 18.04.2018 / 19:52
3
answers

Center one CSS table element

I want to center a table using CSS in an HTML page. Not the content of the fields (row-columns) of the table, but the table. The table element. Code: <div id="mostrar_tabla"> <form action="<?php echo $_SERVER['PHP_SELF']...
asked on 06.01.2018 / 23:35