Posts by Marcos Vinicius Leão • 273 points
33 posts
-
1
votes1
answer53
viewsQ: Resize image with PHP before uploading to the image server
I have a small problem. I want to limit the size of the image to be sent to the server and also its resolution in pixels. for example, set a maximum size of 1mb per image, and maximum resolution…
phpasked Marcos Vinicius Leão 273 -
0
votes2
answers35
viewsQ: Pass Form + Variable by AJAX
People I’m trying to pass my FORM + the OFFSET variable, but I’m not getting it.. Can someone give me an example? $("#btn-pass").click(function() { offset = offset + 5; pagina++; var data =…
ajaxasked Marcos Vinicius Leão 273 -
0
votes1
answer61
viewsA: Is it possible for me to pass an array or POST as a parameter and save to the database without having to put in local variables?
If you want to make it less ugly, why not use PDO with wildcards? This makes even your application safer. You can read about it here. And there’s a really cool example of someone else HERE.…
-
0
votes1
answer537
viewsQ: Success: Function AJAX does not work
I have this function in JQUERY and AJAX, it executes what I want, however, do not enter in sucess to display the successful msg and reset the form, it is sending the image to the server and the form…
-
0
votes3
answers820
viewsA: How to do when the person takes the mouse from the top decrease the size only with css
It’s pretty simple to decrease the size with Hover. It’s just you say the size of it normally like in the example1 and then decrease that size in the example1:Hover. <!DOCTYPE html>…
-
0
votes4
answers97
viewsA: Change image by clicking on radio input
There’s that shape too. <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Pergunta</title> <style> .carinha{ width: 50px; height: 50px; }…
-
-2
votes2
answers202
viewsQ: Hide files from inspect
I’ve been researching how to hide CSS, JS, JQUERY files from inspect, but everything I found was old or didn’t help me much. I wonder if you have any way to hide these folders so that when someone…
-
0
votes2
answers110
viewsQ: Error calling Java Script in HTML
Ol, I’m doing a content load other pages without updating the masterpage with AJAX as follows: Line that I click <li id="pag1">Pag1</li> Script $("#pag1").click(function(){ $.ajax({ type…
-
0
votes1
answer228
viewsA: Date filter problem using Datatable
Try to use dateFormat: 'dd/mm/y' Example: $( ".startdate" ).datepicker({ dateFormat: 'dd/mm/y',//check change changeMonth: true, changeYear: true }); <script…
-
1
votes2
answers110
viewsA: How to change the color of the div without affecting :Hover
Hello friend all right? Try to use ! Mportant in front of the color of the Hover, I tested and it worked. I hope it helps you. .sub-menu a:hover { color: orangered !important; transition: 0.5s; }…
-
1
votes1
answer233
viewsA: Redeem name instead of id in a select option from the PHP Mysql database
If I understand correctly, do you want the same value displayed to the user in the combobox to be saved as well? Because the value displayed is user_name. It’s quite simple actually, just do it:…
-
0
votes2
answers520
viewsA: Capture session data with PHP and Mysql
You tried to: // user name. $idempresa = $result_qr['usuario_empresa_id']; $_SESSION['idempresa'] = $idempresa; Then just troccar. if($idempresa == 1) { $_SESSION['usuario'] = $usuario;…
-
1
votes1
answer111
viewsQ: Return value with PHP and AJAX
I’m trying to do a POST and it’s right in parts, only when I try to send the value of FORM to the destination of the post it gets the blank value. See my code: This is the form that sends the POST…
-
1
votes3
answers118
viewsA: Where am I going wrong to calculate age?
Learn about diff here. This is useful to represent the difference between the two dates. Your code would look like this: function idadeAluno($dataNasci) { $nasci = new DateTime($dataNasci); $agora =…
-
0
votes0
answers137
viewsQ: Hide ? id= from php URL
Is there any way to hide ? id=1 from the URL? I would like to hide this so that no one can change it through the URL, if possible not only encrypt it, but actually hide it. I tried to do it for Ajax…
-
3
votes2
answers583
viewsA: What makes "group by 1" and why it causes errors in Laravel
Serves to group in the first column, regardless of what is called. You can do the same with ORDER BY. Example: SELECT account_id, open_emp_id /\ /\ coluna 1 coluna 2 FROM account GROUP BY 1; In the…
-
2
votes1
answer63
viewsQ: Content that loads other pages without updating the masterpage
Hey, how you doing? I would like to make a side menu with the loading of a page next to it, only when selecting an item from the menu, I do not want it to be loaded 100% of the page but only that…
-
1
votes2
answers46
viewsA: Why aren’t the images glued together?
If the space problem is on the sides remove the space like this: <div class="container clearfix" style="min-width: 100% !important"> If you are between the images just change the margin:…
htmlanswered Marcos Vinicius Leão 273 -
1
votes2
answers73
viewsA: How to insert data into Msqli database using current date
Hi, I enter the creation date in my tables as follows: .date('Y-m-d'). And when I want to display the date I use: $data_formatada = date("d/m/Y", strtotime($data_cadastro)); // Modifies the time…
-
1
votes1
answer125
viewsQ: Create Table with 3 rows then create another table with 3 more rows
I would like to create several tables with three lines each. Example: GROUP A TEAM 1 TEAM 2 TEAM 3 GROUP B TEAM 4 TEAM 5 TEAM 6 Follow my code: <?php include 'masterpage.php'; include…
-
0
votes1
answer418
viewsQ: Change text color in a Listview (Android)
Hey, guys, I’m having a little bit of a problem. I’m trying to change the color of a text inside a standard Listview android, however, it does not change. I tried changing the color in Layout,…
-
0
votes3
answers1050
viewsA: Separate Tables in Columns using HTML
This code makes responsive tables, which fit the screen of mobile phones! Understanding: We created the class. divTab which has a size of 50% of the screen of any device, the table will stick to the…
htmlanswered Marcos Vinicius Leão 273 -
1
votes1
answer42
viewsA: Technical help. Grouping websites and improving traffic
Read the following tips carefully and see if you agree with the authors' opinion, i particularly agree with the second argument when it comes to performance. According to this site Everything will…
-
1
votes1
answer594
viewsA: Save an image to a Mysql database using Python
Try this, if it doesn’t work let me know that I edit the answer! Here it worked. cursor.execute("INSERT INTO william (entrada, foto) VALUES (%s, %s)", (hora, foto)) If you have any questions click…
-
-1
votes1
answer259
viewsQ: How to create a selector to choose between Camera, Gallery and Photos in Android Studio?
Speak Devs! I already gave a search, but I could not find something that would help me, anyway... I would like to create a menu similar to that of the image below. I can get camera and gallery…
-
-1
votes3
answers4397
viewsA: html file does not identify CSS
Let’s start with the explanation: Browsers make HTTP requests for servers. The server then makes an HTTP response. Both requests and responses consist of multiple headers and a body (sometimes…
-
1
votes1
answer548
viewsA: How do ENTER jump from the field instead of sending?
Hello, all right? I found an answer that can help you! If you want to see the original answer Click here $("input, select", "form") // busca input e select no form .keypress(function(e){ // evento…
-
-2
votes2
answers370
viewsA: Difference between scroll speed and the speed the image is revealed using background-Attachment: Fixed
Hello, you can control the appearance of an element by using transition-duration: 5s; transition-delay: 2s; Take a look at this example:…
-
0
votes2
answers625
viewsA: Make Calculations in Sql Server Database
I don’t quite understand what you want, but you can use SUM to display this information whenever you need, without having to store the total. SELECT Sum(VALOR_COMPRA - VALOR_VENDA) FROM ... ; Or you…
sqlanswered Marcos Vinicius Leão 273 -
-1
votes3
answers231
viewsA: how to insert a select command into the BD using c#?
I think George Wurthmann’s answer is more correct, but if you just want to know the syntax, have you tried to remove " and ' from the concatenation? In c# you can just call the variable at the end…
-
0
votes1
answer53
viewsA: how do I page other results
I didn’t quite understand your question! But I’ll show you an example I did to paginate a table, so you follow the logic of what you need. // esse trecho seta as configurações <?php include…
-
4
votes3
answers297
viewsA: What is Appsettings for?
In appSettings we can create keys and set values for these keys and, what I think is very good, we don’t need to recompile the application to exchange the value of these keys. Let’s go to two…
-
0
votes0
answers58
viewsQ: OnScroll function in JS
I’m putting this code in a separate script from HTML, but it doesn’t work 100%. When I create the tag <scrip></script> within the HTML it works, someone can explain me the reason? filing…
javascriptasked Marcos Vinicius Leão 273