Posts by Aiden Pearce • 331 points
13 posts
-
0
votes1
answer62
viewsA: Replace "Apostrophe" key when typed in mobile input
I managed to resolve gentlemen. I changed the code by placing the CHANGE event and making global substitution in the textarea, and it was as follows: https://jsfiddle.net/q5yg9sb6/ <!-- MESCALDA…
-
-1
votes1
answer62
viewsQ: Replace "Apostrophe" key when typed in mobile input
I am having a problem that I am not knowing the resolution when the system in question is accessed on mobile devices only. I have a TEXTAREA field so that users can write their data and consequently…
-
1
votes1
answer36
viewsA: Site structure with includes
Opa, Google will index only the pages you have it indexed. You can control this with the ROBOTS.TXT file that should be in the root folder of the project, in which you will define what google is…
-
6
votes1
answer132
viewsQ: Is using ID as a global variable a good practice in JAVASCRIPT?
I discovered that there is a new way to rescue and define values to any HTML tag, using its ID as a variable: <html> <head> <title>Meu Teste</title> </head>…
-
1
votes2
answers235
viewsA: How to do a search in MYSQL considering plural and singular
Whoa, well come on. The way I would do it is a little bit laborious, but in theory it would work, but you would have to structure a little better with PHP. I would start treating the term that was…
-
4
votes3
answers211
viewsQ: Sum of Total Positive and Negative Hours
I need to perform the sum of positive and negative hours for a virtual electronic point control. However, I am having difficulties to accomplish the sum, because the hours are not being correctly…
phpasked Aiden Pearce 331 -
1
votes2
answers726
viewsA: I cannot set a fixed size for buttons
You are not setting the size of anything there in your code, because you need to set the width to have the width and/or height to height. Suppose you want to set the width of all buttons based on…
-
0
votes2
answers41
viewsA: Doubts with this function
Whoa, whoa, whoa, whoa. It is the same function, but written in different ways, what situation should I use one function with parameters and another not? You have 2 functions that do the same task,…
-
4
votes2
answers203
viewsA: How to get the exact date and time after updating a record?
Try changing the update date by replacing the minutes (’m') with ('i') date_default_timezone_set('America/Sao_Paulo'); $data = array( 'updated_at' => date('Y-m-d : H:i:s', time()), ); Put a…
-
0
votes2
answers1881
viewsA: Laravel - Passing Variable To View - Record Page
So, dude, the way I know how to do this is to define in the view controller the variables that you want to pass in the view. I usually do it this way: //Crio uma função INDEX para carregar a tela:…
-
0
votes2
answers109
viewsA: Javascript Calculator(Returns no value)
Try replacing your Names with Ids, and make the recovery value like this: HTML: <input type="checkbox" id="num1" value="1"> JAVASCRIPT: var num1 = document.getElementById("num1").value; After…
-
1
votes2
answers451
viewsA: Loop in PHP to create a form dynamically
Oops beauty? To make the loop you have to have a variable that already has the data you need, and then you can use the foreach for this, passing in value the attribute you want: <form name="form"…
-
1
votes1
answer69
viewsA: How to create a server to place a website online?
Oops beauty? So, man, first of all, in order for you to "create" a server you would have to have a very high investment rsrsrsrs. I recommend doing the following (most work like this). Instead of…