Posts by Anorak • 61 points
9 posts
-
-1
votes1
answer50
viewsQ: C# Lambda function with multiple validations, checking using contains with multiple comparisons
_release is a List with several records x.located is a bool x.Description is a string I’m trying this way if (_lancamento.Where(x => x.Localizado && x.descricao.Contains(new…
-
-1
votes1
answer246
viewsQ: Subtract PHP date and time
I looked it up online and couldn’t find anything to help me solve this problem. I need to do the following, get a date/time informed by the system and decrease it by 5 hours. Example: 2019-08-29…
-
0
votes2
answers94
viewsQ: jQuery selecting the element itself
Well I’m new in jQuery and I’m having a problem, as I do to select the element itself and not what is inside it, follows code: $('#add_phone').bind('click', function(){ var html = ''; html +=…
-
0
votes1
answer51
viewsQ: SQL CASE command
I’m trying to select only 5 characters from the field description, tried several ways and it doesn’t work, the eating I’m giving is this: SELECT description = CASE WHEN LEN(description) > 5 THEN…
-
1
votes1
answer226
viewsQ: SQL query where WHERE has 2 options
I intend to make an SQL query where WHERE has 2 situations, example: SELECT * FROM products WHERE name = "%Explosion%" OR tag = "%Explosion%" In this consultation I would specify that, first the…
-
1
votes1
answer1695
viewsQ: SQL how to select in 2 different columns
I’m trying to make a SELECT to select 2 different columns from the same table, example: id | name | tags ----------------------------------- 1 | acao | null 2 | aventura | null 3 | rpg |…
-
0
votes1
answer87
viewsQ: Multiple SQL query
I’m not very experienced with SQL language, as I could make a query work this way: SELECT *, ( SELECT marca.* FROM marca WHERE marca.id = produtos.id ) AS nome_marca FROM produtos WHERE id = 5 What…
-
0
votes1
answer296
viewsQ: move_uploaded_file returns only FALSE
I have a problem I couldn’t identify, move_uploaded_file returns only FALSE regardless of what I pass in the parameters. Follow code: <form method="POST" enctype="multipart/form-data">…
-
1
votes1
answer33
viewsQ: jQuery function for selecting values in Divs and playing for an array
I’m taking the values of several <div>s with the same class name and trying to play for an array in jQuery, but as I’m starting in the language I’m not getting, I’ve already searched the…