All Questions

2
answers

strtotime returns 1969-12-31

When the field Fecha is empty the variable $Fecha2 returns 1969-12-31 . When it's complete it works perfect. I leave this portion of code: <?php if(isset($_POST['Fecha'])) { $Fecha1=$_POST['Fecha']; $Fecha2= date("Y-m-d",...
asked on 26.11.2018 / 13:56
1
answer

ERROR insert JDBC data MYSQL Java

I've been trying to insert all the data I get through the scanner into the database all day yesterday and I get an error, I can not find the solution anywhere. I get this error message:    Exception in thread "main"   com.mysql.jdbc.except...
asked on 21.03.2018 / 12:07
2
answers

Get php variable from another file

I have 2 PHP files. The first one is called data.php and it has <?php $get = $_GET; if (isset($get['getBoxes']) && $get['getBoxes'] == 'what-we-do') { $boxes = array( array( 'title' => 'e-commerce',...
asked on 07.03.2018 / 14:03
3
answers

Script does not work although the logic is fine

What I'm trying to do is that the div is painted red on the first click and the second click is aqua but does not work. For me the script is fine but I do not know what happens var div; var coloreado = 0;; function clickdiv() { di...
asked on 06.03.2018 / 03:16
2
answers

Because when using "document.getElementsByClassName" the border does not change?

If instead of using "document.getElementsByClassName", I use "document.getElementById" and assign an Id to it, in that case if it works, what am I doing wrong? function resalta(elEvento) { var evento = elEvento || window.event; swi...
asked on 05.03.2018 / 03:27
2
answers

Data table misorders the hours

I was testing the jquery library of datatable's that is quite complete and good, related to the property that can be sorted upwards to descending data, enter time data, such as 7:15 AM, 8:00 AM, 9:00 AM, 9:45 AM, I realized that the column where...
asked on 06.03.2018 / 20:53
4
answers

Problem in laravel "Invalid route action: [App \ Http \ Controllers \ HomeController]."

Hello create a driver with PHP artisan make: controller HomeController --resource HomeController <?php namespace App\Http\Controllers; use Illuminate\Http\Request; class HomeController extends Controller { /** * Display a lis...
asked on 06.03.2018 / 17:01
2
answers

Function php meaning

I am using a code that I have been left with, but I do not know what this function means: return $a < $b ? -1 : 1;     
asked on 18.08.2016 / 08:08
3
answers

Value with various data like to find it in other pages in PHP

I have the following code pagina1.php <input type="checkbox" class="case" name="case[]" value="<?php printf("%s",$row["nombre"]); printf("|"); printf("%s",$row["fecha"]); printf("|"); printf("%s",$row["hora"]);?>"> I send it to...
asked on 12.10.2016 / 17:36
3
answers

Move underline in the middle of the word

Currently I have 2 underline that I want to join in the middle of the word how to move the underline in the middle of the word? when I try it goes down + the word .err { border-top: 2px dotted red; display: inline-block; posi...
asked on 20.03.2018 / 22:31