All Questions

2
answers

Is there a way to adapt an SQL statement when a null field arrives?

Hi, I hope you're ok, is there any way to adapt an SQL statement so that it reacts according to whether a parameter arrives nil or not, something like this: drop table if exists tabla; create table tabla ( id int primary key AUTO_INCREMENT...
asked on 21.08.2018 / 16:07
1
answer

Format for currency (MXN) DataFormatString

I am applying in the model the DataformatString I wish that in the price of the products appear the cost separated by thousands with one (,) and that it appears without decimals. I was able to make decimals not appear but not to show the thousan...
asked on 20.08.2018 / 13:56
1
answer

Save date in unix format in Mysql

I need to store records with field in date and time in Unix format by default in a mysql table, is it possible to do that? Can you create a table with this field by default?     
asked on 01.09.2018 / 00:52
2
answers

How to center horizontally and spaced several elements within a div?

I have within a <div> several elements <span> , <button> and <img> aligned horizontally. I need them to be centered vertically. They must be between them horizontally aligned and spaced occup...
asked on 29.08.2018 / 11:32
1
answer

CSS error, apply style to the wrong item

Good, this is my first question and I hope to do it well, I'm copying a web page to practice html and css, what happens to me is that when I try to put the background blue of page-section-2 actually it turns blue the page-section-1...
asked on 19.08.2018 / 10:01
4
answers

How to consume an API with REACTJS?

I have an application created with reactjs which I must consume an api that returns me x data. The problem I have is that I do not know how to do it through reactjs, I've reviewed the Internet how to do it and I've replicated exactly the...
asked on 05.12.2018 / 13:13
1
answer

Problem when including class in a PHP

I'm working on PHP and to test my program I'm trying to make the simple lines of code that you see in the image include("model\product.php"); $product = new Product(); $product->setName("Remera"); $product->setDe...
asked on 06.12.2018 / 01:29
1
answer

Ask about bd with conditional?

The question I have come up with is simple; I make a query with \DB $data = \DB::table('users')->select($lo_que_sea) ->where(['vacations.aceptado' => $filtro]) ->get(); I want to make a condition on that where so th...
asked on 23.08.2018 / 09:13
1
answer

option element of a select selected by default

I have a select with a single fixed option disabled, the other options are added after an ajax query, I need to load the page to select the fixed option with the disable. <select id="desdeReserveInput" name="desde" class="form-control">...
asked on 28.11.2018 / 16:27
1
answer

Difference in concatenating data in Python 3.7

I thank in advance the people who can help me with this query, since I am new to programming. I am taking a python course and I was practicing the conditionals and the following question arose: Why when concatenating with commas do not give m...
asked on 06.12.2018 / 04:09