All Questions

2
answers

help with the UNIX_TIMESTAMP function in mysql

I am using the UNIX_TIMESTAMP function to convert a date to unix format. The date is this: 2018-04-16 12:00:00 when I use UNIX_TIMESTAMP('2018-04-16 12:00:00'); returns 1524225600 that is equal to 2018-04-...
asked on 19.04.2018 / 18:14
1
answer

Error in showing data using switch case?

If there is data returned or received by method $ _POST, it will have the value process if there are no returned or received values, it will have the value cancel The code states it in the following way, but there is a fatal err...
asked on 23.10.2017 / 03:10
2
answers

I need help with a sql statement

You see, I am carrying out a project little by little and I have found a doubt that requires knowledge of sql and the truth is that I know the basics ... I need an ajax request to make me a select that returns the fields of 2 tables, but one...
asked on 29.04.2018 / 12:34
2
answers

Copy TextView on Clipboard when pressed

I want to make that when I clicked on a TextView in andorid studio it was copied to the clipboard, I tried to put the android:longClickable="true" line in the text view tag as I read on a page, but nothing. I have changed in the androi...
asked on 10.04.2018 / 14:13
1
answer

How to clean the contents of a DataGrid?

I have a (WPF) window and a C # code that contains the following One button: <Button x:Name="btnBuscar" Content="Buscar por" HorizontalAlignment="Left" Margin="157,10,0,0" VerticalAlignment="Top" Width="85" Height="30" Click="btnBuscar_...
asked on 09.04.2018 / 05:38
1
answer

Problem in mysql count php, it works in phpmyadmin and not in php

I have this function that should bring me the account of the records in my database on my page: function cuentaticketspendienteempleado($conexion,$id){ $pendientes = mysqli_query($conexion, "SELECT COUNT(t.id) as contador_tickets, t.id as...
asked on 25.04.2018 / 15:35
3
answers

Laravel can not find the driver in App \ Http \ Controllers

I am creating a project in laravel, I have created a driver, and when I try to link it to the path, it throws me an error that does not find it. I show you the code    CONTROLLER: Home      namespace App\Http\Controllers\Home; use Illuminate\...
asked on 05.04.2018 / 16:46
1
answer

How to make a validation in C #?

I'm new to this C # and my question is: how can I do a number validation for a calculator? I would like to apply the validation in this part of my code: float a, b; Console.Write("INGRESE PRIMER VALOR: "); a = float.Parse(Console.ReadLine()...
asked on 27.06.2017 / 03:39
2
answers

Item of one color or another (RecyclerView)

What I want to achieve is the following, that an element is painted in one color and the next in another: ----------- item0: azul ----------- item1: amarillo ----------- item2: azul ----------- item3: amarillo ----------- ... and thus witho...
asked on 20.06.2017 / 14:40
1
answer

Menu with boostrap

I'm creating a drop-down menu and it does not show me, I do not know why, look here the code: Default.ctp <?php /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https...
asked on 09.04.2018 / 21:07